diff --git a/core-lib/es6/.gitignore b/core-lib/es6/.gitignore new file mode 100644 index 00000000..16723b95 --- /dev/null +++ b/core-lib/es6/.gitignore @@ -0,0 +1,6 @@ +/target/ +/bin/ +/.classpath +/.project +/.settings/ +/.jsweet/ diff --git a/core-lib/es6/README.md b/core-lib/es6/README.md new file mode 100644 index 00000000..2473f106 --- /dev/null +++ b/core-lib/es6/README.md @@ -0,0 +1,39 @@ +# JSweet jsweet-core candy + +## Description + +This project is a Java bridge to the jsweet-core library, so that jsweet-core can be used from Java (thanks to the JSweet transpiler). + +This candy is used for compilation (typing and API checking) but does not contain any implementation, similarly to a C/C++ header file or to a TypeScript definition file. + +## How to install the candy + +Clone this project with git and install the JSweet candy in your local Maven repository (so that you can refer to it as a dependency in other Maven projects): + +```bash +> mvn install +``` + +To deploy the candy to the [jsweet-candies](https://github.com/jsweet-candies) organization (please contact us to get an authorized access): + +```bash +> mvn deploy +``` + +Note: if you want to publish the candy in your own Maven repository, please refer to existing documentation on that particular topic. + +## Use from a Java/JSweet project + +Add the following dependency to the ``pom.xml``: + +```xml + + org.jsweet.candies.ext + jsweet-core + 6-SNAPSHOT + +``` + +## License + +By default, JSweet candies are published with the Apache 2 Open Source license. Since they are pure APIs, remember that it does not make sense to try to bind a JSweet candy to a commercial license (on contrary to the bridged JS library/framework, which can be distributed under a non-open source license). \ No newline at end of file diff --git a/core-lib/es6/pom.xml b/core-lib/es6/pom.xml new file mode 100644 index 00000000..26da57a9 --- /dev/null +++ b/core-lib/es6/pom.xml @@ -0,0 +1,210 @@ + + 4.0.0 + org.jsweet.candies.ext + jsweet-core + 6-SNAPSHOT + + 2.0.0 + + + + jsweet-central + libs-release + http://repository.jsweet.org/artifactory/libs-release-local + + + + jsweet-snapshots + libs-snapshot + http://repository.jsweet.org/artifactory/libs-snapshot-local + + + + + jsweet-plugins-release + plugins-release + http://repository.jsweet.org/artifactory/plugins-release-local + + + + jsweet-plugins-snapshots + plugins-snapshot + http://repository.jsweet.org/artifactory/plugins-snapshot-local + + + + + org.jsweet + jsweet-core + 5-SNAPSHOT + + + + + src/main/java + + + src/main/resources + true + + + + + maven-compiler-plugin + 3.1 + + 1.8 + 1.8 + true + + + + + org.jsweet + jsweet-maven-plugin + 2.0.0-SNAPSHOT + + true + true + src/main/resources/META-INF/resources/typings/${project.artifactId}/${project.version} + ES5 + + **jsweet/util/function/** + + + + + generate-js + generate-sources + + jsweet + + + + + + + maven-antrun-plugin + 1.8 + + + package + + + + + + + + + + + run + + + + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar + + + + deploy + + jar + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + 1.8 + src/main/java + ${skipJavadoc} + UTF-8 + all + false +
http://www.jsweet.org]]>
+ Copyright 2015, Cinchéo SAS - Web site: http://www.jsweet.org
]]> + /var/www/apidocs/stylesheet.css + + + + attach-javadoc + + jar + + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.jsweet + + + jsweet-maven-plugin + + + [1.1.0-SNAPSHOT,) + + + jsweet + + + + + + + + + + + + + + + + jsweet-release + libs-release + http://repository.jsweet.org/artifactory/libs-release-local + + + jsweet-snapshots + libs-snapshot + http://repository.jsweet.org/artifactory/libs-snapshot-local + + + + JSweet + http://www.jsweet.org + + \ No newline at end of file diff --git a/core-lib/es6/src/main/java/def/dom/ANGLE_instanced_arrays.java b/core-lib/es6/src/main/java/def/dom/ANGLE_instanced_arrays.java new file mode 100644 index 00000000..e6933fbc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ANGLE_instanced_arrays.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class ANGLE_instanced_arrays extends def.js.Object { + native public void drawArraysInstancedANGLE(double mode, double first, double count, double primcount); + native public void drawElementsInstancedANGLE(double mode, double count, double type, double offset, double primcount); + native public void vertexAttribDivisorANGLE(double index, double divisor); + public double VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE; + public static ANGLE_instanced_arrays prototype; + public ANGLE_instanced_arrays(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AbstractWorker.java b/core-lib/es6/src/main/java/def/dom/AbstractWorker.java new file mode 100644 index 00000000..502eebdd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AbstractWorker.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; +import def.js.StringTypes; +import def.js.StringTypes.error; + +@jsweet.lang.Interface +public abstract class AbstractWorker extends def.js.Object { + public java.util.function.Function onerror; + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ActiveXObject.java b/core-lib/es6/src/main/java/def/dom/ActiveXObject.java new file mode 100644 index 00000000..077b9d23 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ActiveXObject.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class ActiveXObject extends def.js.Object { + public ActiveXObject(java.lang.String s){} + protected ActiveXObject(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Algorithm.java b/core-lib/es6/src/main/java/def/dom/Algorithm.java new file mode 100644 index 00000000..5599ddaa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Algorithm.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class Algorithm extends def.js.Object { + @jsweet.lang.Optional + public java.lang.String name; +} + diff --git a/core-lib/es6/src/main/java/def/dom/AnalyserNode.java b/core-lib/es6/src/main/java/def/dom/AnalyserNode.java new file mode 100644 index 00000000..b883517f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AnalyserNode.java @@ -0,0 +1,18 @@ +package def.dom; + +import def.js.Uint8Array; + +public class AnalyserNode extends AudioNode { + public double fftSize; + public double frequencyBinCount; + public double maxDecibels; + public double minDecibels; + public double smoothingTimeConstant; + native public void getByteFrequencyData(Uint8Array array); + native public void getByteTimeDomainData(Uint8Array array); + native public void getFloatFrequencyData(java.lang.Object array); + native public void getFloatTimeDomainData(java.lang.Object array); + public static AnalyserNode prototype; + public AnalyserNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AnimationEvent.java b/core-lib/es6/src/main/java/def/dom/AnimationEvent.java new file mode 100644 index 00000000..6606f9bc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AnimationEvent.java @@ -0,0 +1,10 @@ +package def.dom; + +public class AnimationEvent extends Event { + public java.lang.String animationName; + public double elapsedTime; + native public void initAnimationEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.String animationNameArg, double elapsedTimeArg); + public static AnimationEvent prototype; + public AnimationEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ApplicationCache.java b/core-lib/es6/src/main/java/def/dom/ApplicationCache.java new file mode 100644 index 00000000..6df677fb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ApplicationCache.java @@ -0,0 +1,55 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.cached; +import def.js.StringTypes.checking; +import def.js.StringTypes.downloading; +import def.js.StringTypes.error; +import def.js.StringTypes.noupdate; +import def.js.StringTypes.obsolete; +import def.js.StringTypes.progress; +import def.js.StringTypes.updateready; + +public class ApplicationCache extends EventTarget { + public java.util.function.Function oncached; + public java.util.function.Function onchecking; + public java.util.function.Function ondownloading; + public java.util.function.Function onerror; + public java.util.function.Function onnoupdate; + public java.util.function.Function onobsolete; + public java.util.function.Function onprogress; + public java.util.function.Function onupdateready; + public double status; + native public void abort(); + native public void swapCache(); + native public void update(); + public double CHECKING; + public double DOWNLOADING; + public double IDLE; + public double OBSOLETE; + public double UNCACHED; + public double UPDATEREADY; + native public void addEventListener(def.js.StringTypes.cached type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.checking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.downloading type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.noupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.obsolete type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.updateready type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static ApplicationCache prototype; + public ApplicationCache(){} + native public void addEventListener(def.js.StringTypes.cached type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.checking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.downloading type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.noupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.obsolete type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.updateready type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/AriaRequestEvent.java b/core-lib/es6/src/main/java/def/dom/AriaRequestEvent.java new file mode 100644 index 00000000..3b5c8000 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AriaRequestEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class AriaRequestEvent extends Event { + public java.lang.String attributeName; + public java.lang.String attributeValue; + public static AriaRequestEvent prototype; + public AriaRequestEvent(java.lang.String type, AriaRequestEventInit eventInitDict){} + public AriaRequestEvent(java.lang.String type){} + protected AriaRequestEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AriaRequestEventInit.java b/core-lib/es6/src/main/java/def/dom/AriaRequestEventInit.java new file mode 100644 index 00000000..51058dc6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AriaRequestEventInit.java @@ -0,0 +1,10 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class AriaRequestEventInit extends EventInit { + @jsweet.lang.Optional + public java.lang.String attributeName; + @jsweet.lang.Optional + public java.lang.String attributeValue; +} + diff --git a/core-lib/es6/src/main/java/def/dom/Attr.java b/core-lib/es6/src/main/java/def/dom/Attr.java new file mode 100644 index 00000000..e49e80e1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Attr.java @@ -0,0 +1,11 @@ +package def.dom; + +public class Attr extends Node { + public java.lang.String name; + public Element ownerElement; + public java.lang.Boolean specified; + public java.lang.String value; + public static Attr prototype; + public Attr(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Audio.java b/core-lib/es6/src/main/java/def/dom/Audio.java new file mode 100644 index 00000000..81fa5746 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Audio.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +/** This is an automatically generated object type (see the source definition). */ +@jsweet.lang.ObjectType +public class Audio extends def.js.Object { + public Audio(java.lang.String src){} + public Audio(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioBuffer.java b/core-lib/es6/src/main/java/def/dom/AudioBuffer.java new file mode 100644 index 00000000..b66011bd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioBuffer.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +public class AudioBuffer extends def.js.Object { + public double duration; + public double length; + public double numberOfChannels; + public double sampleRate; + native public java.lang.Object getChannelData(double channel); + public static AudioBuffer prototype; + public AudioBuffer(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioBufferSourceNode.java b/core-lib/es6/src/main/java/def/dom/AudioBufferSourceNode.java new file mode 100644 index 00000000..2e289f13 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioBufferSourceNode.java @@ -0,0 +1,28 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.ended; + +public class AudioBufferSourceNode extends AudioNode { + public AudioBuffer buffer; + public java.lang.Boolean loop; + public double loopEnd; + public double loopStart; + public java.util.function.Function onended; + public AudioParam playbackRate; + native public void start(double when, double offset, double duration); + native public void stop(double when); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static AudioBufferSourceNode prototype; + public AudioBufferSourceNode(){} + native public void start(double when, double offset); + native public void start(double when); + native public void start(); + native public void stop(); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioContext.java b/core-lib/es6/src/main/java/def/dom/AudioContext.java new file mode 100644 index 00000000..7e9a2fed --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioContext.java @@ -0,0 +1,38 @@ +package def.dom; + +import def.js.ArrayBuffer; + +public class AudioContext extends EventTarget { + public double currentTime; + public AudioDestinationNode destination; + public AudioListener listener; + public double sampleRate; + native public AnalyserNode createAnalyser(); + native public BiquadFilterNode createBiquadFilter(); + native public AudioBuffer createBuffer(double numberOfChannels, double length, double sampleRate); + native public AudioBufferSourceNode createBufferSource(); + native public ChannelMergerNode createChannelMerger(double numberOfInputs); + native public ChannelSplitterNode createChannelSplitter(double numberOfOutputs); + native public ConvolverNode createConvolver(); + native public DelayNode createDelay(double maxDelayTime); + native public DynamicsCompressorNode createDynamicsCompressor(); + native public GainNode createGain(); + native public MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement); + native public OscillatorNode createOscillator(); + native public PannerNode createPanner(); + native public PeriodicWave createPeriodicWave(java.lang.Object real, java.lang.Object imag); + native public ScriptProcessorNode createScriptProcessor(double bufferSize, double numberOfInputChannels, double numberOfOutputChannels); + native public StereoPannerNode createStereoPanner(); + native public WaveShaperNode createWaveShaper(); + native public void decodeAudioData(ArrayBuffer audioData, DecodeSuccessCallback successCallback, DecodeErrorCallback errorCallback); + public static AudioContext prototype; + public AudioContext(){} + native public ChannelMergerNode createChannelMerger(); + native public ChannelSplitterNode createChannelSplitter(); + native public DelayNode createDelay(); + native public ScriptProcessorNode createScriptProcessor(double bufferSize, double numberOfInputChannels); + native public ScriptProcessorNode createScriptProcessor(double bufferSize); + native public ScriptProcessorNode createScriptProcessor(); + native public void decodeAudioData(ArrayBuffer audioData, DecodeSuccessCallback successCallback); +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioDestinationNode.java b/core-lib/es6/src/main/java/def/dom/AudioDestinationNode.java new file mode 100644 index 00000000..da68be97 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioDestinationNode.java @@ -0,0 +1,7 @@ +package def.dom; +public class AudioDestinationNode extends AudioNode { + public double maxChannelCount; + public static AudioDestinationNode prototype; + public AudioDestinationNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioListener.java b/core-lib/es6/src/main/java/def/dom/AudioListener.java new file mode 100644 index 00000000..59e0dba1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioListener.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +public class AudioListener extends def.js.Object { + public double dopplerFactor; + public double speedOfSound; + native public void setOrientation(double x, double y, double z, double xUp, double yUp, double zUp); + native public void setPosition(double x, double y, double z); + native public void setVelocity(double x, double y, double z); + public static AudioListener prototype; + public AudioListener(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioNode.java b/core-lib/es6/src/main/java/def/dom/AudioNode.java new file mode 100644 index 00000000..06287bed --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioNode.java @@ -0,0 +1,18 @@ +package def.dom; + +public class AudioNode extends EventTarget { + public double channelCount; + public java.lang.String channelCountMode; + public java.lang.String channelInterpretation; + public AudioContext context; + public double numberOfInputs; + public double numberOfOutputs; + native public void connect(AudioNode destination, double output, double input); + native public void disconnect(double output); + public static AudioNode prototype; + public AudioNode(){} + native public void connect(AudioNode destination, double output); + native public void connect(AudioNode destination); + native public void disconnect(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioParam.java b/core-lib/es6/src/main/java/def/dom/AudioParam.java new file mode 100644 index 00000000..427734b2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioParam.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class AudioParam extends def.js.Object { + public double defaultValue; + public double value; + native public void cancelScheduledValues(double startTime); + native public void exponentialRampToValueAtTime(double value, double endTime); + native public void linearRampToValueAtTime(double value, double endTime); + native public void setTargetAtTime(double target, double startTime, double timeConstant); + native public void setValueAtTime(double value, double startTime); + native public void setValueCurveAtTime(java.lang.Object values, double startTime, double duration); + public static AudioParam prototype; + public AudioParam(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioProcessingEvent.java b/core-lib/es6/src/main/java/def/dom/AudioProcessingEvent.java new file mode 100644 index 00000000..5ee014ff --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioProcessingEvent.java @@ -0,0 +1,10 @@ +package def.dom; + +public class AudioProcessingEvent extends Event { + public AudioBuffer inputBuffer; + public AudioBuffer outputBuffer; + public double playbackTime; + public static AudioProcessingEvent prototype; + public AudioProcessingEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioTrack.java b/core-lib/es6/src/main/java/def/dom/AudioTrack.java new file mode 100644 index 00000000..e07a78d8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioTrack.java @@ -0,0 +1,15 @@ +package def.dom; + +import def.js.Object; + +public class AudioTrack extends def.js.Object { + public java.lang.Boolean enabled; + public java.lang.String id; + public java.lang.String kind; + public java.lang.String label; + public java.lang.String language; + public SourceBuffer sourceBuffer; + public static AudioTrack prototype; + public AudioTrack(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/AudioTrackList.java b/core-lib/es6/src/main/java/def/dom/AudioTrackList.java new file mode 100644 index 00000000..87c7680d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/AudioTrackList.java @@ -0,0 +1,33 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.addtrack; +import def.js.StringTypes.change; +import def.js.StringTypes.removetrack; + +@jsweet.lang.SyntacticIterable +public class AudioTrackList { + public double length; + public java.util.function.Function onaddtrack; + public java.util.function.Function onchange; + public java.util.function.Function onremovetrack; + native public AudioTrack getTrackById(java.lang.String id); + native public AudioTrack item(double index); + native public void addEventListener(def.js.StringTypes.addtrack type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.removetrack type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public AudioTrack $get(double index); + public static AudioTrackList prototype; + public AudioTrackList(){} + native public void addEventListener(def.js.StringTypes.addtrack type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.removetrack type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/BarProp.java b/core-lib/es6/src/main/java/def/dom/BarProp.java new file mode 100644 index 00000000..7f9a9d45 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/BarProp.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class BarProp extends def.js.Object { + public java.lang.Boolean visible; + public static BarProp prototype; + public BarProp(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/BeforeUnloadEvent.java b/core-lib/es6/src/main/java/def/dom/BeforeUnloadEvent.java new file mode 100644 index 00000000..af1f328f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/BeforeUnloadEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class BeforeUnloadEvent extends Event { + public java.lang.Object returnValue; + public static BeforeUnloadEvent prototype; + public BeforeUnloadEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/BiquadFilterNode.java b/core-lib/es6/src/main/java/def/dom/BiquadFilterNode.java new file mode 100644 index 00000000..330d7162 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/BiquadFilterNode.java @@ -0,0 +1,13 @@ +package def.dom; + +public class BiquadFilterNode extends AudioNode { + public AudioParam Q; + public AudioParam detune; + public AudioParam frequency; + public AudioParam gain; + public java.lang.String type; + native public void getFrequencyResponse(java.lang.Object frequencyHz, java.lang.Object magResponse, java.lang.Object phaseResponse); + public static BiquadFilterNode prototype; + public BiquadFilterNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Blob.java b/core-lib/es6/src/main/java/def/dom/Blob.java new file mode 100644 index 00000000..6967e112 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Blob.java @@ -0,0 +1,19 @@ +package def.dom; + +import def.js.Object; + +public class Blob extends def.js.Object { + public double size; + public java.lang.String type; + native public void msClose(); + native public java.lang.Object msDetachStream(); + native public Blob slice(double start, double end, java.lang.String contentType); + public static Blob prototype; + public Blob(java.lang.Object[] blobParts, BlobPropertyBag options){} + native public Blob slice(double start, double end); + native public Blob slice(double start); + native public Blob slice(); + public Blob(java.lang.Object[] blobParts){} + public Blob(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/BlobPropertyBag.java b/core-lib/es6/src/main/java/def/dom/BlobPropertyBag.java new file mode 100644 index 00000000..f5a9eb5b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/BlobPropertyBag.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class BlobPropertyBag extends def.js.Object { + @jsweet.lang.Optional + public java.lang.String type; + @jsweet.lang.Optional + public java.lang.String endings; +} + diff --git a/core-lib/es6/src/main/java/def/dom/CDATASection.java b/core-lib/es6/src/main/java/def/dom/CDATASection.java new file mode 100644 index 00000000..77603fdf --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CDATASection.java @@ -0,0 +1,7 @@ +package def.dom; + +public class CDATASection extends Text { + public static CDATASection prototype; + public CDATASection(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSS.java b/core-lib/es6/src/main/java/def/dom/CSS.java new file mode 100644 index 00000000..1f277075 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSS.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class CSS extends def.js.Object { + native public static java.lang.Boolean supports(java.lang.String property, java.lang.String value); + native public static java.lang.Boolean supports(java.lang.String property); +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSConditionRule.java b/core-lib/es6/src/main/java/def/dom/CSSConditionRule.java new file mode 100644 index 00000000..adc41e22 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSConditionRule.java @@ -0,0 +1,7 @@ +package def.dom; +public class CSSConditionRule extends CSSGroupingRule { + public java.lang.String conditionText; + public static CSSConditionRule prototype; + public CSSConditionRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSFontFaceRule.java b/core-lib/es6/src/main/java/def/dom/CSSFontFaceRule.java new file mode 100644 index 00000000..fe63815b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSFontFaceRule.java @@ -0,0 +1,7 @@ +package def.dom; +public class CSSFontFaceRule extends CSSRule { + public CSSStyleDeclaration style; + public static CSSFontFaceRule prototype; + public CSSFontFaceRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSGroupingRule.java b/core-lib/es6/src/main/java/def/dom/CSSGroupingRule.java new file mode 100644 index 00000000..41e08ed5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSGroupingRule.java @@ -0,0 +1,11 @@ +package def.dom; +public class CSSGroupingRule extends CSSRule { + public CSSRuleList cssRules; + native public void deleteRule(double index); + native public double insertRule(java.lang.String rule, double index); + public static CSSGroupingRule prototype; + public CSSGroupingRule(){} + native public void deleteRule(); + native public double insertRule(java.lang.String rule); +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSImportRule.java b/core-lib/es6/src/main/java/def/dom/CSSImportRule.java new file mode 100644 index 00000000..21e83169 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSImportRule.java @@ -0,0 +1,10 @@ +package def.dom; + +public class CSSImportRule extends CSSRule { + public java.lang.String href; + public MediaList media; + public CSSStyleSheet styleSheet; + public static CSSImportRule prototype; + public CSSImportRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSKeyframeRule.java b/core-lib/es6/src/main/java/def/dom/CSSKeyframeRule.java new file mode 100644 index 00000000..6784d6c7 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSKeyframeRule.java @@ -0,0 +1,8 @@ +package def.dom; +public class CSSKeyframeRule extends CSSRule { + public java.lang.String keyText; + public CSSStyleDeclaration style; + public static CSSKeyframeRule prototype; + public CSSKeyframeRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSKeyframesRule.java b/core-lib/es6/src/main/java/def/dom/CSSKeyframesRule.java new file mode 100644 index 00000000..555298c6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSKeyframesRule.java @@ -0,0 +1,11 @@ +package def.dom; +public class CSSKeyframesRule extends CSSRule { + public CSSRuleList cssRules; + public java.lang.String name; + native public void appendRule(java.lang.String rule); + native public void deleteRule(java.lang.String rule); + native public CSSKeyframeRule findRule(java.lang.String rule); + public static CSSKeyframesRule prototype; + public CSSKeyframesRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSMediaRule.java b/core-lib/es6/src/main/java/def/dom/CSSMediaRule.java new file mode 100644 index 00000000..3cfb9fa0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSMediaRule.java @@ -0,0 +1,8 @@ +package def.dom; + +public class CSSMediaRule extends CSSConditionRule { + public MediaList media; + public static CSSMediaRule prototype; + public CSSMediaRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSNamespaceRule.java b/core-lib/es6/src/main/java/def/dom/CSSNamespaceRule.java new file mode 100644 index 00000000..be56cce9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSNamespaceRule.java @@ -0,0 +1,8 @@ +package def.dom; +public class CSSNamespaceRule extends CSSRule { + public java.lang.String namespaceURI; + public java.lang.String prefix; + public static CSSNamespaceRule prototype; + public CSSNamespaceRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSPageRule.java b/core-lib/es6/src/main/java/def/dom/CSSPageRule.java new file mode 100644 index 00000000..109e08cc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSPageRule.java @@ -0,0 +1,10 @@ +package def.dom; +public class CSSPageRule extends CSSRule { + public java.lang.String pseudoClass; + public java.lang.String selector; + public java.lang.String selectorText; + public CSSStyleDeclaration style; + public static CSSPageRule prototype; + public CSSPageRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSRule.java b/core-lib/es6/src/main/java/def/dom/CSSRule.java new file mode 100644 index 00000000..09d1b1ee --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSRule.java @@ -0,0 +1,25 @@ +package def.dom; + +import def.js.Object; + +public class CSSRule extends def.js.Object { + public java.lang.String cssText; + public CSSRule parentRule; + public CSSStyleSheet parentStyleSheet; + public double type; + public double CHARSET_RULE; + public double FONT_FACE_RULE; + public double IMPORT_RULE; + public double KEYFRAMES_RULE; + public double KEYFRAME_RULE; + public double MEDIA_RULE; + public double NAMESPACE_RULE; + public double PAGE_RULE; + public double STYLE_RULE; + public double SUPPORTS_RULE; + public double UNKNOWN_RULE; + public double VIEWPORT_RULE; + public static CSSRule prototype; + public CSSRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSRuleList.java b/core-lib/es6/src/main/java/def/dom/CSSRuleList.java new file mode 100644 index 00000000..982cf1de --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSRuleList.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class CSSRuleList extends Iterable { + public double length; + native public CSSRule item(double index); + native public CSSRule $get(double index); + public static CSSRuleList prototype; + public CSSRuleList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSStyleDeclaration.java b/core-lib/es6/src/main/java/def/dom/CSSStyleDeclaration.java new file mode 100644 index 00000000..4449e207 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSStyleDeclaration.java @@ -0,0 +1,365 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class CSSStyleDeclaration extends Iterable { + public java.lang.String alignContent; + public java.lang.String alignItems; + public java.lang.String alignSelf; + public java.lang.String alignmentBaseline; + public java.lang.String animation; + public java.lang.String animationDelay; + public java.lang.String animationDirection; + public java.lang.String animationDuration; + public java.lang.String animationFillMode; + public java.lang.String animationIterationCount; + public java.lang.String animationName; + public java.lang.String animationPlayState; + public java.lang.String animationTimingFunction; + public java.lang.String backfaceVisibility; + public java.lang.String background; + public java.lang.String backgroundAttachment; + public java.lang.String backgroundClip; + public java.lang.String backgroundColor; + public java.lang.String backgroundImage; + public java.lang.String backgroundOrigin; + public java.lang.String backgroundPosition; + public java.lang.String backgroundPositionX; + public java.lang.String backgroundPositionY; + public java.lang.String backgroundRepeat; + public java.lang.String backgroundSize; + public java.lang.String baselineShift; + public java.lang.String border; + public java.lang.String borderBottom; + public java.lang.String borderBottomColor; + public java.lang.String borderBottomLeftRadius; + public java.lang.String borderBottomRightRadius; + public java.lang.String borderBottomStyle; + public java.lang.String borderBottomWidth; + public java.lang.String borderCollapse; + public java.lang.String borderColor; + public java.lang.String borderImage; + public java.lang.String borderImageOutset; + public java.lang.String borderImageRepeat; + public java.lang.String borderImageSlice; + public java.lang.String borderImageSource; + public java.lang.String borderImageWidth; + public java.lang.String borderLeft; + public java.lang.String borderLeftColor; + public java.lang.String borderLeftStyle; + public java.lang.String borderLeftWidth; + public java.lang.String borderRadius; + public java.lang.String borderRight; + public java.lang.String borderRightColor; + public java.lang.String borderRightStyle; + public java.lang.String borderRightWidth; + public java.lang.String borderSpacing; + public java.lang.String borderStyle; + public java.lang.String borderTop; + public java.lang.String borderTopColor; + public java.lang.String borderTopLeftRadius; + public java.lang.String borderTopRightRadius; + public java.lang.String borderTopStyle; + public java.lang.String borderTopWidth; + public java.lang.String borderWidth; + public java.lang.String bottom; + public java.lang.String boxShadow; + public java.lang.String boxSizing; + public java.lang.String breakAfter; + public java.lang.String breakBefore; + public java.lang.String breakInside; + public java.lang.String captionSide; + public java.lang.String clear; + public java.lang.String clip; + public java.lang.String clipPath; + public java.lang.String clipRule; + public java.lang.String color; + public java.lang.String colorInterpolationFilters; + public java.lang.Object columnCount; + public java.lang.String columnFill; + public java.lang.Object columnGap; + public java.lang.String columnRule; + public java.lang.Object columnRuleColor; + public java.lang.String columnRuleStyle; + public java.lang.Object columnRuleWidth; + public java.lang.String columnSpan; + public java.lang.Object columnWidth; + public java.lang.String columns; + public java.lang.String content; + public java.lang.String counterIncrement; + public java.lang.String counterReset; + public java.lang.String cssFloat; + public java.lang.String cssText; + public java.lang.String cursor; + public java.lang.String direction; + public java.lang.String display; + public java.lang.String dominantBaseline; + public java.lang.String emptyCells; + public java.lang.String enableBackground; + public java.lang.String fill; + public java.lang.String fillOpacity; + public java.lang.String fillRule; + public java.lang.String filter; + public java.lang.String flex; + public java.lang.String flexBasis; + public java.lang.String flexDirection; + public java.lang.String flexFlow; + public java.lang.String flexGrow; + public java.lang.String flexShrink; + public java.lang.String flexWrap; + public java.lang.String floodColor; + public java.lang.String floodOpacity; + public java.lang.String font; + public java.lang.String fontFamily; + public java.lang.String fontFeatureSettings; + public java.lang.String fontSize; + public java.lang.String fontSizeAdjust; + public java.lang.String fontStretch; + public java.lang.String fontStyle; + public java.lang.String fontVariant; + public java.lang.String fontWeight; + public java.lang.String glyphOrientationHorizontal; + public java.lang.String glyphOrientationVertical; + public java.lang.String height; + public java.lang.String imeMode; + public java.lang.String justifyContent; + public java.lang.String kerning; + public java.lang.String left; + public double length; + public java.lang.String letterSpacing; + public java.lang.String lightingColor; + public java.lang.String lineHeight; + public java.lang.String listStyle; + public java.lang.String listStyleImage; + public java.lang.String listStylePosition; + public java.lang.String listStyleType; + public java.lang.String margin; + public java.lang.String marginBottom; + public java.lang.String marginLeft; + public java.lang.String marginRight; + public java.lang.String marginTop; + public java.lang.String marker; + public java.lang.String markerEnd; + public java.lang.String markerMid; + public java.lang.String markerStart; + public java.lang.String mask; + public java.lang.String maxHeight; + public java.lang.String maxWidth; + public java.lang.String minHeight; + public java.lang.String minWidth; + public java.lang.String msContentZoomChaining; + public java.lang.String msContentZoomLimit; + public java.lang.Object msContentZoomLimitMax; + public java.lang.Object msContentZoomLimitMin; + public java.lang.String msContentZoomSnap; + public java.lang.String msContentZoomSnapPoints; + public java.lang.String msContentZoomSnapType; + public java.lang.String msContentZooming; + public java.lang.String msFlowFrom; + public java.lang.String msFlowInto; + public java.lang.String msFontFeatureSettings; + public java.lang.Object msGridColumn; + public java.lang.String msGridColumnAlign; + public java.lang.Object msGridColumnSpan; + public java.lang.String msGridColumns; + public java.lang.Object msGridRow; + public java.lang.String msGridRowAlign; + public java.lang.Object msGridRowSpan; + public java.lang.String msGridRows; + public java.lang.String msHighContrastAdjust; + public java.lang.String msHyphenateLimitChars; + public java.lang.Object msHyphenateLimitLines; + public java.lang.Object msHyphenateLimitZone; + public java.lang.String msHyphens; + public java.lang.String msImeAlign; + public java.lang.String msOverflowStyle; + public java.lang.String msScrollChaining; + public java.lang.String msScrollLimit; + public java.lang.Object msScrollLimitXMax; + public java.lang.Object msScrollLimitXMin; + public java.lang.Object msScrollLimitYMax; + public java.lang.Object msScrollLimitYMin; + public java.lang.String msScrollRails; + public java.lang.String msScrollSnapPointsX; + public java.lang.String msScrollSnapPointsY; + public java.lang.String msScrollSnapType; + public java.lang.String msScrollSnapX; + public java.lang.String msScrollSnapY; + public java.lang.String msScrollTranslation; + public java.lang.String msTextCombineHorizontal; + public java.lang.Object msTextSizeAdjust; + public java.lang.String msTouchAction; + public java.lang.String msTouchSelect; + public java.lang.String msUserSelect; + public java.lang.String msWrapFlow; + public java.lang.Object msWrapMargin; + public java.lang.String msWrapThrough; + public java.lang.String opacity; + public java.lang.String order; + public java.lang.String orphans; + public java.lang.String outline; + public java.lang.String outlineColor; + public java.lang.String outlineStyle; + public java.lang.String outlineWidth; + public java.lang.String overflow; + public java.lang.String overflowX; + public java.lang.String overflowY; + public java.lang.String padding; + public java.lang.String paddingBottom; + public java.lang.String paddingLeft; + public java.lang.String paddingRight; + public java.lang.String paddingTop; + public java.lang.String pageBreakAfter; + public java.lang.String pageBreakBefore; + public java.lang.String pageBreakInside; + public CSSRule parentRule; + public java.lang.String perspective; + public java.lang.String perspectiveOrigin; + public java.lang.String pointerEvents; + public java.lang.String position; + public java.lang.String quotes; + public java.lang.String right; + public java.lang.String rubyAlign; + public java.lang.String rubyOverhang; + public java.lang.String rubyPosition; + public java.lang.String stopColor; + public java.lang.String stopOpacity; + public java.lang.String stroke; + public java.lang.String strokeDasharray; + public java.lang.String strokeDashoffset; + public java.lang.String strokeLinecap; + public java.lang.String strokeLinejoin; + public java.lang.String strokeMiterlimit; + public java.lang.String strokeOpacity; + public java.lang.String strokeWidth; + public java.lang.String tableLayout; + public java.lang.String textAlign; + public java.lang.String textAlignLast; + public java.lang.String textAnchor; + public java.lang.String textDecoration; + public java.lang.String textFillColor; + public java.lang.String textIndent; + public java.lang.String textJustify; + public java.lang.String textKashida; + public java.lang.String textKashidaSpace; + public java.lang.String textOverflow; + public java.lang.String textShadow; + public java.lang.String textTransform; + public java.lang.String textUnderlinePosition; + public java.lang.String top; + public java.lang.String touchAction; + public java.lang.String transform; + public java.lang.String transformOrigin; + public java.lang.String transformStyle; + public java.lang.String transition; + public java.lang.String transitionDelay; + public java.lang.String transitionDuration; + public java.lang.String transitionProperty; + public java.lang.String transitionTimingFunction; + public java.lang.String unicodeBidi; + public java.lang.String verticalAlign; + public java.lang.String visibility; + public java.lang.String webkitAlignContent; + public java.lang.String webkitAlignItems; + public java.lang.String webkitAlignSelf; + public java.lang.String webkitAnimation; + public java.lang.String webkitAnimationDelay; + public java.lang.String webkitAnimationDirection; + public java.lang.String webkitAnimationDuration; + public java.lang.String webkitAnimationFillMode; + public java.lang.String webkitAnimationIterationCount; + public java.lang.String webkitAnimationName; + public java.lang.String webkitAnimationPlayState; + public java.lang.String webkitAnimationTimingFunction; + public java.lang.String webkitAppearance; + public java.lang.String webkitBackfaceVisibility; + public java.lang.String webkitBackground; + public java.lang.String webkitBackgroundAttachment; + public java.lang.String webkitBackgroundClip; + public java.lang.String webkitBackgroundColor; + public java.lang.String webkitBackgroundImage; + public java.lang.String webkitBackgroundOrigin; + public java.lang.String webkitBackgroundPosition; + public java.lang.String webkitBackgroundPositionX; + public java.lang.String webkitBackgroundPositionY; + public java.lang.String webkitBackgroundRepeat; + public java.lang.String webkitBackgroundSize; + public java.lang.String webkitBorderBottomLeftRadius; + public java.lang.String webkitBorderBottomRightRadius; + public java.lang.String webkitBorderImage; + public java.lang.String webkitBorderImageOutset; + public java.lang.String webkitBorderImageRepeat; + public java.lang.String webkitBorderImageSlice; + public java.lang.String webkitBorderImageSource; + public java.lang.String webkitBorderImageWidth; + public java.lang.String webkitBorderRadius; + public java.lang.String webkitBorderTopLeftRadius; + public java.lang.String webkitBorderTopRightRadius; + public java.lang.String webkitBoxAlign; + public java.lang.String webkitBoxDirection; + public java.lang.String webkitBoxFlex; + public java.lang.String webkitBoxOrdinalGroup; + public java.lang.String webkitBoxOrient; + public java.lang.String webkitBoxPack; + public java.lang.String webkitBoxSizing; + public java.lang.String webkitColumnBreakAfter; + public java.lang.String webkitColumnBreakBefore; + public java.lang.String webkitColumnBreakInside; + public java.lang.Object webkitColumnCount; + public java.lang.Object webkitColumnGap; + public java.lang.String webkitColumnRule; + public java.lang.Object webkitColumnRuleColor; + public java.lang.String webkitColumnRuleStyle; + public java.lang.Object webkitColumnRuleWidth; + public java.lang.String webkitColumnSpan; + public java.lang.Object webkitColumnWidth; + public java.lang.String webkitColumns; + public java.lang.String webkitFilter; + public java.lang.String webkitFlex; + public java.lang.String webkitFlexBasis; + public java.lang.String webkitFlexDirection; + public java.lang.String webkitFlexFlow; + public java.lang.String webkitFlexGrow; + public java.lang.String webkitFlexShrink; + public java.lang.String webkitFlexWrap; + public java.lang.String webkitJustifyContent; + public java.lang.String webkitOrder; + public java.lang.String webkitPerspective; + public java.lang.String webkitPerspectiveOrigin; + public java.lang.String webkitTapHighlightColor; + public java.lang.String webkitTextFillColor; + public java.lang.Object webkitTextSizeAdjust; + public java.lang.String webkitTransform; + public java.lang.String webkitTransformOrigin; + public java.lang.String webkitTransformStyle; + public java.lang.String webkitTransition; + public java.lang.String webkitTransitionDelay; + public java.lang.String webkitTransitionDuration; + public java.lang.String webkitTransitionProperty; + public java.lang.String webkitTransitionTimingFunction; + public java.lang.String webkitUserSelect; + public java.lang.String webkitWritingMode; + public java.lang.String whiteSpace; + public java.lang.String widows; + public java.lang.String width; + public java.lang.String wordBreak; + public java.lang.String wordSpacing; + public java.lang.String wordWrap; + public java.lang.String writingMode; + public java.lang.String zIndex; + public java.lang.String zoom; + native public java.lang.String getPropertyPriority(java.lang.String propertyName); + native public java.lang.String getPropertyValue(java.lang.String propertyName); + native public java.lang.String item(double index); + native public java.lang.String removeProperty(java.lang.String propertyName); + native public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String priority); + native public java.lang.String $get(double index); + public static CSSStyleDeclaration prototype; + public CSSStyleDeclaration(){} + native public void setProperty(java.lang.String propertyName, java.lang.String value); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSStyleRule.java b/core-lib/es6/src/main/java/def/dom/CSSStyleRule.java new file mode 100644 index 00000000..e0b6cd24 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSStyleRule.java @@ -0,0 +1,9 @@ +package def.dom; +public class CSSStyleRule extends CSSRule { + public java.lang.Boolean readOnly; + public java.lang.String selectorText; + public CSSStyleDeclaration style; + public static CSSStyleRule prototype; + public CSSStyleRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSStyleSheet.java b/core-lib/es6/src/main/java/def/dom/CSSStyleSheet.java new file mode 100644 index 00000000..113c40d3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSStyleSheet.java @@ -0,0 +1,32 @@ +package def.dom; + +public class CSSStyleSheet extends StyleSheet { + public CSSRuleList cssRules; + public java.lang.String cssText; + public java.lang.String href; + public java.lang.String id; + public StyleSheetList imports; + public java.lang.Boolean isAlternate; + public java.lang.Boolean isPrefAlternate; + public CSSRule ownerRule; + public Element owningElement; + public StyleSheetPageList pages; + public java.lang.Boolean readOnly; + public CSSRuleList rules; + native public double addImport(java.lang.String bstrURL, double lIndex); + native public double addPageRule(java.lang.String bstrSelector, java.lang.String bstrStyle, double lIndex); + native public double addRule(java.lang.String bstrSelector, java.lang.String bstrStyle, double lIndex); + native public void deleteRule(double index); + native public double insertRule(java.lang.String rule, double index); + native public void removeImport(double lIndex); + native public void removeRule(double lIndex); + public static CSSStyleSheet prototype; + public CSSStyleSheet(){} + native public double addImport(java.lang.String bstrURL); + native public double addPageRule(java.lang.String bstrSelector, java.lang.String bstrStyle); + native public double addRule(java.lang.String bstrSelector, java.lang.String bstrStyle); + native public double addRule(java.lang.String bstrSelector); + native public void deleteRule(); + native public double insertRule(java.lang.String rule); +} + diff --git a/core-lib/es6/src/main/java/def/dom/CSSSupportsRule.java b/core-lib/es6/src/main/java/def/dom/CSSSupportsRule.java new file mode 100644 index 00000000..789ea909 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CSSSupportsRule.java @@ -0,0 +1,6 @@ +package def.dom; +public class CSSSupportsRule extends CSSConditionRule { + public static CSSSupportsRule prototype; + public CSSSupportsRule(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CanvasGradient.java b/core-lib/es6/src/main/java/def/dom/CanvasGradient.java new file mode 100644 index 00000000..d52b1168 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CanvasGradient.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class CanvasGradient extends def.js.Object { + native public void addColorStop(double offset, java.lang.String color); + public static CanvasGradient prototype; + public CanvasGradient(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CanvasPattern.java b/core-lib/es6/src/main/java/def/dom/CanvasPattern.java new file mode 100644 index 00000000..5cce67f2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CanvasPattern.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class CanvasPattern extends def.js.Object { + public static CanvasPattern prototype; + public CanvasPattern(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CanvasRenderingContext2D.java b/core-lib/es6/src/main/java/def/dom/CanvasRenderingContext2D.java new file mode 100644 index 00000000..493de2cc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CanvasRenderingContext2D.java @@ -0,0 +1,98 @@ +package def.dom; + +import def.js.Object; + +public class CanvasRenderingContext2D extends def.js.Object { + public HTMLCanvasElement canvas; + public java.lang.Object fillStyle; + public java.lang.String font; + public double globalAlpha; + public java.lang.String globalCompositeOperation; + public java.lang.String lineCap; + public double lineDashOffset; + public java.lang.String lineJoin; + public double lineWidth; + public double miterLimit; + public java.lang.String msFillRule; + public java.lang.Boolean msImageSmoothingEnabled; + public double shadowBlur; + public java.lang.String shadowColor; + public double shadowOffsetX; + public double shadowOffsetY; + public java.lang.Object strokeStyle; + public java.lang.String textAlign; + public java.lang.String textBaseline; + native public void arc(double x, double y, double radius, double startAngle, double endAngle, java.lang.Boolean anticlockwise); + native public void arcTo(double x1, double y1, double x2, double y2, double radius); + native public void beginPath(); + native public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); + native public void clearRect(double x, double y, double w, double h); + native public void clip(java.lang.String fillRule); + native public void closePath(); + native public ImageData createImageData(double imageDataOrSw, double sh); + native public ImageData createImageData(ImageData imageDataOrSw, double sh); + native public CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1); + native public CanvasPattern createPattern(HTMLImageElement image, java.lang.String repetition); + native public CanvasPattern createPattern(HTMLCanvasElement image, java.lang.String repetition); + native public CanvasPattern createPattern(HTMLVideoElement image, java.lang.String repetition); + native public CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth, double canvasImageHeight); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth, double canvasImageHeight); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth, double canvasImageHeight); + native public void fill(java.lang.String fillRule); + native public void fillRect(double x, double y, double w, double h); + native public void fillText(java.lang.String text, double x, double y, double maxWidth); + native public ImageData getImageData(double sx, double sy, double sw, double sh); + native public double[] getLineDash(); + native public java.lang.Boolean isPointInPath(double x, double y, java.lang.String fillRule); + native public void lineTo(double x, double y); + native public TextMetrics measureText(java.lang.String text); + native public void moveTo(double x, double y); + native public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); + native public void quadraticCurveTo(double cpx, double cpy, double x, double y); + native public void rect(double x, double y, double w, double h); + native public void restore(); + native public void rotate(double angle); + native public void save(); + native public void scale(double x, double y); + native public void setLineDash(double[] segments); + native public void setTransform(double m11, double m12, double m21, double m22, double dx, double dy); + native public void stroke(); + native public void strokeRect(double x, double y, double w, double h); + native public void strokeText(java.lang.String text, double x, double y, double maxWidth); + native public void transform(double m11, double m12, double m21, double m22, double dx, double dy); + native public void translate(double x, double y); + public static CanvasRenderingContext2D prototype; + public CanvasRenderingContext2D(){} + native public void arc(double x, double y, double radius, double startAngle, double endAngle); + native public void clip(); + native public ImageData createImageData(double imageDataOrSw); + native public ImageData createImageData(ImageData imageDataOrSw); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width); + native public void drawImage(HTMLImageElement image, double offsetX, double offsetY); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width); + native public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width); + native public void drawImage(HTMLVideoElement image, double offsetX, double offsetY); + native public void fill(); + native public void fillText(java.lang.String text, double x, double y); + native public java.lang.Boolean isPointInPath(double x, double y); + native public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth); + native public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY); + native public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX); + native public void putImageData(ImageData imagedata, double dx, double dy); + native public void strokeText(java.lang.String text, double x, double y); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ChannelMergerNode.java b/core-lib/es6/src/main/java/def/dom/ChannelMergerNode.java new file mode 100644 index 00000000..0e541a1c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ChannelMergerNode.java @@ -0,0 +1,7 @@ +package def.dom; + +public class ChannelMergerNode extends AudioNode { + public static ChannelMergerNode prototype; + public ChannelMergerNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ChannelSplitterNode.java b/core-lib/es6/src/main/java/def/dom/ChannelSplitterNode.java new file mode 100644 index 00000000..248e3ae2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ChannelSplitterNode.java @@ -0,0 +1,7 @@ +package def.dom; + +public class ChannelSplitterNode extends AudioNode { + public static ChannelSplitterNode prototype; + public ChannelSplitterNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CharacterData.java b/core-lib/es6/src/main/java/def/dom/CharacterData.java new file mode 100644 index 00000000..e398459c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CharacterData.java @@ -0,0 +1,20 @@ +package def.dom; + +@jsweet.lang.Extends({ChildNode.class}) +public class CharacterData extends Node { + public java.lang.String data; + public double length; + native public void appendData(java.lang.String arg); + native public void deleteData(double offset, double count); + native public void insertData(double offset, java.lang.String arg); + native public void replaceData(double offset, double count, java.lang.String arg); + native public java.lang.String substringData(double offset, double count); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static CharacterData prototype; + public CharacterData(){} + native public void remove(); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ChildNode.java b/core-lib/es6/src/main/java/def/dom/ChildNode.java new file mode 100644 index 00000000..6ceb7811 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ChildNode.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class ChildNode extends def.js.Object { + native public void remove(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ClientRect.java b/core-lib/es6/src/main/java/def/dom/ClientRect.java new file mode 100644 index 00000000..cfb0173d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ClientRect.java @@ -0,0 +1,15 @@ +package def.dom; + +import def.js.Object; + +public class ClientRect extends def.js.Object { + public double bottom; + public double height; + public double left; + public double right; + public double top; + public double width; + public static ClientRect prototype; + public ClientRect(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ClientRectList.java b/core-lib/es6/src/main/java/def/dom/ClientRectList.java new file mode 100644 index 00000000..4c402cb2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ClientRectList.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class ClientRectList extends Iterable { + public double length; + native public ClientRect item(double index); + native public ClientRect $get(double index); + public static ClientRectList prototype; + public ClientRectList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ClipboardEvent.java b/core-lib/es6/src/main/java/def/dom/ClipboardEvent.java new file mode 100644 index 00000000..2001ff7b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ClipboardEvent.java @@ -0,0 +1,10 @@ +package def.dom; + +public class ClipboardEvent extends Event { + public DataTransfer clipboardData; + public static ClipboardEvent prototype; + public ClipboardEvent(java.lang.String type, ClipboardEventInit eventInitDict){} + public ClipboardEvent(java.lang.String type){} + protected ClipboardEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ClipboardEventInit.java b/core-lib/es6/src/main/java/def/dom/ClipboardEventInit.java new file mode 100644 index 00000000..01dda582 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ClipboardEventInit.java @@ -0,0 +1,10 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class ClipboardEventInit extends EventInit { + @jsweet.lang.Optional + public java.lang.String data; + @jsweet.lang.Optional + public java.lang.String dataType; +} + diff --git a/core-lib/es6/src/main/java/def/dom/CloseEvent.java b/core-lib/es6/src/main/java/def/dom/CloseEvent.java new file mode 100644 index 00000000..6486c130 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CloseEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class CloseEvent extends Event { + public double code; + public java.lang.String reason; + public java.lang.Boolean wasClean; + native public void initCloseEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.Boolean wasCleanArg, double codeArg, java.lang.String reasonArg); + public static CloseEvent prototype; + public CloseEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CommandEvent.java b/core-lib/es6/src/main/java/def/dom/CommandEvent.java new file mode 100644 index 00000000..e39eccda --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CommandEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class CommandEvent extends Event { + public java.lang.String commandName; + public java.lang.String detail; + public static CommandEvent prototype; + public CommandEvent(java.lang.String type, CommandEventInit eventInitDict){} + public CommandEvent(java.lang.String type){} + protected CommandEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CommandEventInit.java b/core-lib/es6/src/main/java/def/dom/CommandEventInit.java new file mode 100644 index 00000000..87258a96 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CommandEventInit.java @@ -0,0 +1,10 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class CommandEventInit extends EventInit { + @jsweet.lang.Optional + public java.lang.String commandName; + @jsweet.lang.Optional + public java.lang.String detail; +} + diff --git a/core-lib/es6/src/main/java/def/dom/Comment.java b/core-lib/es6/src/main/java/def/dom/Comment.java new file mode 100644 index 00000000..5d720aca --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Comment.java @@ -0,0 +1,8 @@ +package def.dom; + +public class Comment extends CharacterData { + public java.lang.String text; + public static Comment prototype; + public Comment(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CompositionEvent.java b/core-lib/es6/src/main/java/def/dom/CompositionEvent.java new file mode 100644 index 00000000..ff18c32d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CompositionEvent.java @@ -0,0 +1,12 @@ +package def.dom; + +public class CompositionEvent extends UIEvent { + public java.lang.String data; + public java.lang.String locale; + native public void initCompositionEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, java.lang.String dataArg, java.lang.String locale); + public static CompositionEvent prototype; + public CompositionEvent(java.lang.String typeArg, CompositionEventInit eventInitDict){} + public CompositionEvent(java.lang.String typeArg){} + protected CompositionEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CompositionEventInit.java b/core-lib/es6/src/main/java/def/dom/CompositionEventInit.java new file mode 100644 index 00000000..2120a671 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CompositionEventInit.java @@ -0,0 +1,8 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class CompositionEventInit extends UIEventInit { + @jsweet.lang.Optional + public java.lang.String data; +} + diff --git a/core-lib/es6/src/main/java/def/dom/ConfirmSiteSpecificExceptionsInformation.java b/core-lib/es6/src/main/java/def/dom/ConfirmSiteSpecificExceptionsInformation.java new file mode 100644 index 00000000..be2e271c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ConfirmSiteSpecificExceptionsInformation.java @@ -0,0 +1,8 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation { + @jsweet.lang.Optional + public java.lang.String[] arrayOfDomainStrings; +} + diff --git a/core-lib/es6/src/main/java/def/dom/Console.java b/core-lib/es6/src/main/java/def/dom/Console.java new file mode 100644 index 00000000..cd573926 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Console.java @@ -0,0 +1,46 @@ +package def.dom; + +import def.js.Object; + +public class Console extends def.js.Object { + @jsweet.lang.Name("assert") + native public void Assert(java.lang.Boolean test, java.lang.String message, java.lang.Object... optionalParams); + native public void clear(); + native public void count(java.lang.String countTitle); + native public void debug(java.lang.String message, java.lang.Object... optionalParams); + native public void dir(java.lang.Object value, java.lang.Object... optionalParams); + native public void dirxml(java.lang.Object value); + native public void error(java.lang.Object message, java.lang.Object... optionalParams); + native public void group(java.lang.String groupTitle); + native public void groupCollapsed(java.lang.String groupTitle); + native public void groupEnd(); + native public void info(java.lang.Object message, java.lang.Object... optionalParams); + native public void log(java.lang.Object message, java.lang.Object... optionalParams); + native public java.lang.Boolean msIsIndependentlyComposed(Element element); + native public void profile(java.lang.String reportName); + native public void profileEnd(); + native public void select(Element element); + native public void time(java.lang.String timerName); + native public void timeEnd(java.lang.String timerName); + native public void trace(); + native public void warn(java.lang.Object message, java.lang.Object... optionalParams); + public static Console prototype; + public Console(){} + @jsweet.lang.Name("assert") + native public void Assert(java.lang.Boolean test); + @jsweet.lang.Name("assert") + native public void Assert(); + native public void count(); + native public void debug(); + native public void dir(); + native public void error(); + native public void group(); + native public void groupCollapsed(); + native public void info(); + native public void log(); + native public void profile(); + native public void time(); + native public void timeEnd(); + native public void warn(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ConvolverNode.java b/core-lib/es6/src/main/java/def/dom/ConvolverNode.java new file mode 100644 index 00000000..53e99cbc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ConvolverNode.java @@ -0,0 +1,9 @@ +package def.dom; + +public class ConvolverNode extends AudioNode { + public AudioBuffer buffer; + public java.lang.Boolean normalize; + public static ConvolverNode prototype; + public ConvolverNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Coordinates.java b/core-lib/es6/src/main/java/def/dom/Coordinates.java new file mode 100644 index 00000000..0d627f36 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Coordinates.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class Coordinates extends def.js.Object { + public double accuracy; + public double altitude; + public double altitudeAccuracy; + public double heading; + public double latitude; + public double longitude; + public double speed; + public static Coordinates prototype; + public Coordinates(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Crypto.java b/core-lib/es6/src/main/java/def/dom/Crypto.java new file mode 100644 index 00000000..b1ef1527 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Crypto.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.ArrayBufferView; + +@jsweet.lang.Extends({RandomSource.class}) +public class Crypto extends java.lang.Object { + public SubtleCrypto subtle; + public static Crypto prototype; + public Crypto(){} + native public ArrayBufferView getRandomValues(ArrayBufferView array); +} + diff --git a/core-lib/es6/src/main/java/def/dom/CryptoKey.java b/core-lib/es6/src/main/java/def/dom/CryptoKey.java new file mode 100644 index 00000000..7471b9cb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CryptoKey.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class CryptoKey extends def.js.Object { + public KeyAlgorithm algorithm; + public java.lang.Boolean extractable; + public java.lang.String type; + public java.lang.String[] usages; + public static CryptoKey prototype; + public CryptoKey(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CryptoKeyPair.java b/core-lib/es6/src/main/java/def/dom/CryptoKeyPair.java new file mode 100644 index 00000000..c3c1d594 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CryptoKeyPair.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class CryptoKeyPair extends def.js.Object { + public CryptoKey privateKey; + public CryptoKey publicKey; + public static CryptoKeyPair prototype; + public CryptoKeyPair(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CustomEvent.java b/core-lib/es6/src/main/java/def/dom/CustomEvent.java new file mode 100644 index 00000000..08500ce2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CustomEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class CustomEvent extends Event { + public java.lang.Object detail; + native public void initCustomEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.Object detailArg); + public static CustomEvent prototype; + public CustomEvent(java.lang.String typeArg, CustomEventInit eventInitDict){} + public CustomEvent(java.lang.String typeArg){} + protected CustomEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/CustomEventInit.java b/core-lib/es6/src/main/java/def/dom/CustomEventInit.java new file mode 100644 index 00000000..8449aba6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/CustomEventInit.java @@ -0,0 +1,8 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class CustomEventInit extends EventInit { + @jsweet.lang.Optional + public java.lang.Object detail; +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMError.java b/core-lib/es6/src/main/java/def/dom/DOMError.java new file mode 100644 index 00000000..06a0ba01 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMError.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class DOMError extends def.js.Object { + public java.lang.String name; + native public java.lang.String toString(); + public static DOMError prototype; + public DOMError(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMException.java b/core-lib/es6/src/main/java/def/dom/DOMException.java new file mode 100644 index 00000000..b71141b5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMException.java @@ -0,0 +1,40 @@ +package def.dom; + +import def.js.Object; + +public class DOMException extends def.js.Object { + public double code; + public java.lang.String message; + public java.lang.String name; + native public java.lang.String toString(); + public double ABORT_ERR; + public double DATA_CLONE_ERR; + public double DOMSTRING_SIZE_ERR; + public double HIERARCHY_REQUEST_ERR; + public double INDEX_SIZE_ERR; + public double INUSE_ATTRIBUTE_ERR; + public double INVALID_ACCESS_ERR; + public double INVALID_CHARACTER_ERR; + public double INVALID_MODIFICATION_ERR; + public double INVALID_NODE_TYPE_ERR; + public double INVALID_STATE_ERR; + public double NAMESPACE_ERR; + public double NETWORK_ERR; + public double NOT_FOUND_ERR; + public double NOT_SUPPORTED_ERR; + public double NO_DATA_ALLOWED_ERR; + public double NO_MODIFICATION_ALLOWED_ERR; + public double PARSE_ERR; + public double QUOTA_EXCEEDED_ERR; + public double SECURITY_ERR; + public double SERIALIZE_ERR; + public double SYNTAX_ERR; + public double TIMEOUT_ERR; + public double TYPE_MISMATCH_ERR; + public double URL_MISMATCH_ERR; + public double VALIDATION_ERR; + public double WRONG_DOCUMENT_ERR; + public static DOMException prototype; + public DOMException(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMImplementation.java b/core-lib/es6/src/main/java/def/dom/DOMImplementation.java new file mode 100644 index 00000000..73982dd5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMImplementation.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class DOMImplementation extends def.js.Object { + native public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype); + native public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId); + native public Document createHTMLDocument(java.lang.String title); + native public java.lang.Boolean hasFeature(java.lang.String feature, java.lang.String version); + public static DOMImplementation prototype; + public DOMImplementation(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOML2DeprecatedColorProperty.java b/core-lib/es6/src/main/java/def/dom/DOML2DeprecatedColorProperty.java new file mode 100644 index 00000000..ebe96dda --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOML2DeprecatedColorProperty.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class DOML2DeprecatedColorProperty extends def.js.Object { + public java.lang.String color; +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOML2DeprecatedSizeProperty.java b/core-lib/es6/src/main/java/def/dom/DOML2DeprecatedSizeProperty.java new file mode 100644 index 00000000..4e6f7a12 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOML2DeprecatedSizeProperty.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class DOML2DeprecatedSizeProperty extends def.js.Object { + public double size; +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMParser.java b/core-lib/es6/src/main/java/def/dom/DOMParser.java new file mode 100644 index 00000000..ebaf0988 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMParser.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class DOMParser extends def.js.Object { + native public Document parseFromString(java.lang.String source, java.lang.String mimeType); + public static DOMParser prototype; + public DOMParser(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMSettableTokenList.java b/core-lib/es6/src/main/java/def/dom/DOMSettableTokenList.java new file mode 100644 index 00000000..cc658927 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMSettableTokenList.java @@ -0,0 +1,7 @@ +package def.dom; +public class DOMSettableTokenList extends DOMTokenList { + public java.lang.String value; + public static DOMSettableTokenList prototype; + public DOMSettableTokenList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMStringList.java b/core-lib/es6/src/main/java/def/dom/DOMStringList.java new file mode 100644 index 00000000..929e4fce --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMStringList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class DOMStringList extends Iterable { + public double length; + native public java.lang.Boolean contains(java.lang.String str); + native public java.lang.String item(double index); + native public java.lang.String $get(double index); + public static DOMStringList prototype; + public DOMStringList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMStringMap.java b/core-lib/es6/src/main/java/def/dom/DOMStringMap.java new file mode 100644 index 00000000..f98a9d00 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMStringMap.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class DOMStringMap extends def.js.Object { + native public java.lang.String $get(java.lang.String name); + public static DOMStringMap prototype; + public DOMStringMap(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DOMTokenList.java b/core-lib/es6/src/main/java/def/dom/DOMTokenList.java new file mode 100644 index 00000000..6eab09cf --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DOMTokenList.java @@ -0,0 +1,22 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class DOMTokenList extends Iterable { + public double length; + native public void add(java.lang.String... token); + native public java.lang.Boolean contains(java.lang.String token); + native public java.lang.String item(double index); + native public void remove(java.lang.String... token); + native public java.lang.String toString(); + native public java.lang.Boolean toggle(java.lang.String token, java.lang.Boolean force); + native public java.lang.String $get(double index); + public static DOMTokenList prototype; + public DOMTokenList(){} + native public java.lang.Boolean toggle(java.lang.String token); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DataCue.java b/core-lib/es6/src/main/java/def/dom/DataCue.java new file mode 100644 index 00000000..661f9e1a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DataCue.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.ArrayBuffer; + +public class DataCue extends TextTrackCue { + public ArrayBuffer data; + public static DataCue prototype; + public DataCue(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DataTransfer.java b/core-lib/es6/src/main/java/def/dom/DataTransfer.java new file mode 100644 index 00000000..427bcc85 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DataTransfer.java @@ -0,0 +1,18 @@ +package def.dom; + +import def.js.Object; + +public class DataTransfer extends def.js.Object { + public java.lang.String dropEffect; + public java.lang.String effectAllowed; + public FileList files; + public DataTransferItemList items; + public DOMStringList types; + native public java.lang.Boolean clearData(java.lang.String format); + native public java.lang.String getData(java.lang.String format); + native public java.lang.Boolean setData(java.lang.String format, java.lang.String data); + public static DataTransfer prototype; + public DataTransfer(){} + native public java.lang.Boolean clearData(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DataTransferItem.java b/core-lib/es6/src/main/java/def/dom/DataTransferItem.java new file mode 100644 index 00000000..1c4c39f6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DataTransferItem.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class DataTransferItem extends def.js.Object { + public java.lang.String kind; + public java.lang.String type; + native public File getAsFile(); + native public void getAsString(FunctionStringCallback _callback); + public static DataTransferItem prototype; + public DataTransferItem(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DataTransferItemList.java b/core-lib/es6/src/main/java/def/dom/DataTransferItemList.java new file mode 100644 index 00000000..997b3b3c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DataTransferItemList.java @@ -0,0 +1,19 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class DataTransferItemList extends Iterable { + public double length; + native public DataTransferItem add(File data); + native public void clear(); + native public File item(double index); + native public void remove(double index); + native public File $get(double index); + public static DataTransferItemList prototype; + public DataTransferItemList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DecodeErrorCallback.java b/core-lib/es6/src/main/java/def/dom/DecodeErrorCallback.java new file mode 100644 index 00000000..8578d5df --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DecodeErrorCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface DecodeErrorCallback { + public void apply(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DecodeSuccessCallback.java b/core-lib/es6/src/main/java/def/dom/DecodeSuccessCallback.java new file mode 100644 index 00000000..643778e3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DecodeSuccessCallback.java @@ -0,0 +1,6 @@ +package def.dom; + +public interface DecodeSuccessCallback { + public void apply(AudioBuffer decodedData); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeferredPermissionRequest.java b/core-lib/es6/src/main/java/def/dom/DeferredPermissionRequest.java new file mode 100644 index 00000000..ce2a9bc0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeferredPermissionRequest.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +public class DeferredPermissionRequest extends def.js.Object { + public double id; + public java.lang.String type; + public java.lang.String uri; + native public void allow(); + native public void deny(); + public static DeferredPermissionRequest prototype; + public DeferredPermissionRequest(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DelayNode.java b/core-lib/es6/src/main/java/def/dom/DelayNode.java new file mode 100644 index 00000000..b30e74bc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DelayNode.java @@ -0,0 +1,8 @@ +package def.dom; + +public class DelayNode extends AudioNode { + public AudioParam delayTime; + public static DelayNode prototype; + public DelayNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeviceAcceleration.java b/core-lib/es6/src/main/java/def/dom/DeviceAcceleration.java new file mode 100644 index 00000000..5c8d9a87 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeviceAcceleration.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class DeviceAcceleration extends def.js.Object { + public double x; + public double y; + public double z; + public static DeviceAcceleration prototype; + public DeviceAcceleration(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeviceAccelerationDict.java b/core-lib/es6/src/main/java/def/dom/DeviceAccelerationDict.java new file mode 100644 index 00000000..9fb934f9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeviceAccelerationDict.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class DeviceAccelerationDict extends def.js.Object { + @jsweet.lang.Optional + public double x; + @jsweet.lang.Optional + public double y; + @jsweet.lang.Optional + public double z; +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeviceMotionEvent.java b/core-lib/es6/src/main/java/def/dom/DeviceMotionEvent.java new file mode 100644 index 00000000..46acc899 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeviceMotionEvent.java @@ -0,0 +1,12 @@ +package def.dom; + +public class DeviceMotionEvent extends Event { + public DeviceAcceleration acceleration; + public DeviceAcceleration accelerationIncludingGravity; + public double interval; + public DeviceRotationRate rotationRate; + native public void initDeviceMotionEvent(java.lang.String type, java.lang.Boolean bubbles, java.lang.Boolean cancelable, DeviceAccelerationDict acceleration, DeviceAccelerationDict accelerationIncludingGravity, DeviceRotationRateDict rotationRate, double interval); + public static DeviceMotionEvent prototype; + public DeviceMotionEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeviceOrientationEvent.java b/core-lib/es6/src/main/java/def/dom/DeviceOrientationEvent.java new file mode 100644 index 00000000..b82a9558 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeviceOrientationEvent.java @@ -0,0 +1,12 @@ +package def.dom; + +public class DeviceOrientationEvent extends Event { + public java.lang.Boolean absolute; + public double alpha; + public double beta; + public double gamma; + native public void initDeviceOrientationEvent(java.lang.String type, java.lang.Boolean bubbles, java.lang.Boolean cancelable, double alpha, double beta, double gamma, java.lang.Boolean absolute); + public static DeviceOrientationEvent prototype; + public DeviceOrientationEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeviceRotationRate.java b/core-lib/es6/src/main/java/def/dom/DeviceRotationRate.java new file mode 100644 index 00000000..e76df79e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeviceRotationRate.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class DeviceRotationRate extends def.js.Object { + public double alpha; + public double beta; + public double gamma; + public static DeviceRotationRate prototype; + public DeviceRotationRate(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/DeviceRotationRateDict.java b/core-lib/es6/src/main/java/def/dom/DeviceRotationRateDict.java new file mode 100644 index 00000000..60dab586 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DeviceRotationRateDict.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class DeviceRotationRateDict extends def.js.Object { + @jsweet.lang.Optional + public double alpha; + @jsweet.lang.Optional + public double beta; + @jsweet.lang.Optional + public double gamma; +} + diff --git a/core-lib/es6/src/main/java/def/dom/Document.java b/core-lib/es6/src/main/java/def/dom/Document.java new file mode 100644 index 00000000..ca336ec9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Document.java @@ -0,0 +1,1290 @@ +package def.dom; + +import def.dom.ErrorEvent; +import def.js.StringTypes; +import def.js.StringTypes.*; +import def.js.StringTypes.DeviceMotionEvent; +import def.js.StringTypes.DeviceOrientationEvent; +import def.js.StringTypes.DragEvent; +import def.js.StringTypes.MouseWheelEvent; +import def.js.StringTypes.MutationEvent; +import def.js.StringTypes.NavigationEventWithReferrer; +import def.js.StringTypes.PageTransitionEvent; +import def.js.StringTypes.TrackEvent; +import def.js.StringTypes.UnviewableContentIdentifiedEvent; +import def.js.StringTypes.WebGLContextEvent; + +@jsweet.lang.Extends({GlobalEventHandlers.class,NodeSelector.class,DocumentEvent.class}) +public class Document extends Node { + /** + * Sets or gets the URL for the current document. + */ + public java.lang.String URL; + /** + * Gets the URL for the document, stripped of any character encoding. + */ + public java.lang.String URLUnencoded; + /** + * Gets the object that has the focus when the parent document has focus. + */ + public Element activeElement; + /** + * Sets or gets the color of all active links in the document. + */ + public java.lang.String alinkColor; + /** + * Returns a reference to the collection of elements contained by the object. + */ + public HTMLCollection all; + /** + * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. + */ + public HTMLCollection anchors; + /** + * Retrieves a collection of all applet objects in the document. + */ + public HTMLCollection applets; + /** + * Deprecated. Sets or retrieves a value that indicates the background color behind the object. + */ + public java.lang.String bgColor; + /** + * Specifies the beginning and end of the document body. + */ + public HTMLElement body; + public java.lang.String characterSet; + /** + * Gets or sets the character set used to encode the object. + */ + public java.lang.String charset; + /** + * Gets a value that indicates whether standards-compliant mode is switched on for the object. + */ + public java.lang.String compatMode; + public java.lang.String cookie; + /** + * Gets the default character set from the current regional language settings. + */ + public java.lang.String defaultCharset; + public Window defaultView; + /** + * Sets or gets a value that indicates whether the document can be edited. + */ + public java.lang.String designMode; + /** + * Sets or retrieves a value that indicates the reading order of the object. + */ + public java.lang.String dir; + /** + * Gets an object representing the document type declaration associated with the current document. + */ + public DocumentType doctype; + /** + * Gets a reference to the root node of the document. + */ + public HTMLElement documentElement; + /** + * Sets or gets the security domain of the document. + */ + public java.lang.String domain; + /** + * Retrieves a collection of all embed objects in the document. + */ + public HTMLCollection embeds; + /** + * Sets or gets the foreground (text) color of the document. + */ + public java.lang.String fgColor; + /** + * Retrieves a collection, in source order, of all form objects in the document. + */ + public HTMLCollection forms; + public Element fullscreenElement; + public java.lang.Boolean fullscreenEnabled; + public HTMLHeadElement head; + public java.lang.Boolean hidden; + /** + * Retrieves a collection, in source order, of img objects in the document. + */ + public HTMLCollection images; + /** + * Gets the implementation object of the current document. + */ + public DOMImplementation implementation; + /** + * Returns the character encoding used to create the webpage that is loaded into the document object. + */ + public java.lang.String inputEncoding; + /** + * Gets the date that the page was last modified, if the page supplies one. + */ + public java.lang.String lastModified; + /** + * Sets or gets the color of the document links. + */ + public java.lang.String linkColor; + /** + * Retrieves a collection of all a objects that specify the href property and all area objects in the document. + */ + public HTMLCollection links; + /** + * Contains information about the current URL. + */ + public Location location; + public java.lang.String media; + public java.lang.Boolean msCSSOMElementFloatMetrics; + public java.lang.Boolean msCapsLockWarningOff; + public java.lang.Boolean msHidden; + public java.lang.String msVisibilityState; + /** + * Fires when the user aborts the download. + * @param ev The event. + */ + public java.util.function.Function onabort; + /** + * Fires when the object is set as the active element. + * @param ev The event. + */ + public java.util.function.Function onactivate; + /** + * Fires immediately before the object is set as the active element. + * @param ev The event. + */ + public java.util.function.Function onbeforeactivate; + /** + * Fires immediately before the activeElement is changed from the current object to another object in the parent document. + * @param ev The event. + */ + public java.util.function.Function onbeforedeactivate; + /** + * Fires when the object loses the input focus. + * @param ev The focus event. + */ + public java.util.function.Function onblur; + /** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + */ + public java.util.function.Function oncanplay; + public java.util.function.Function oncanplaythrough; + /** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + */ + public java.util.function.Function onchange; + /** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + */ + public java.util.function.Function onclick; + /** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + */ + public java.util.function.Function oncontextmenu; + /** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + */ + public java.util.function.Function ondblclick; + /** + * Fires when the activeElement is changed from the current object to another object in the parent document. + * @param ev The UI Event + */ + public java.util.function.Function ondeactivate; + /** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + */ + public java.util.function.Function ondrag; + /** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + */ + public java.util.function.Function ondragend; + /** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + */ + public java.util.function.Function ondragenter; + /** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + */ + public java.util.function.Function ondragleave; + /** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + */ + public java.util.function.Function ondragover; + /** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + */ + public java.util.function.Function ondragstart; + public java.util.function.Function ondrop; + /** + * Occurs when the duration attribute is updated. + * @param ev The event. + */ + public java.util.function.Function ondurationchange; + /** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + */ + public java.util.function.Function onemptied; + /** + * Occurs when the end of playback is reached. + * @param ev The event + */ + public java.util.function.Function onended; + /** + * Fires when an error occurs during object loading. + * @param ev The event. + */ + public java.util.function.Function onerror; + /** + * Fires when the object receives focus. + * @param ev The event. + */ + public java.util.function.Function onfocus; + public java.util.function.Function onfullscreenchange; + public java.util.function.Function onfullscreenerror; + public java.util.function.Function oninput; + /** + * Fires when the user presses a key. + * @param ev The keyboard event + */ + public java.util.function.Function onkeydown; + /** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + */ + public java.util.function.Function onkeypress; + /** + * Fires when the user releases a key. + * @param ev The keyboard event + */ + public java.util.function.Function onkeyup; + /** + * Fires immediately after the browser loads the object. + * @param ev The event. + */ + public java.util.function.Function onload; + /** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + */ + public java.util.function.Function onloadeddata; + /** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + */ + public java.util.function.Function onloadedmetadata; + /** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + */ + public java.util.function.Function onloadstart; + /** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + */ + public java.util.function.Function onmousedown; + /** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + */ + public java.util.function.Function onmousemove; + /** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + */ + public java.util.function.Function onmouseout; + /** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + */ + public java.util.function.Function onmouseover; + /** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + */ + public java.util.function.Function onmouseup; + /** + * Fires when the wheel button is rotated. + * @param ev The mouse event + */ + public java.util.function.Function onmousewheel; + public java.util.function.Function onmscontentzoom; + public java.util.function.Function onmsgesturechange; + public java.util.function.Function onmsgesturedoubletap; + public java.util.function.Function onmsgestureend; + public java.util.function.Function onmsgesturehold; + public java.util.function.Function onmsgesturestart; + public java.util.function.Function onmsgesturetap; + public java.util.function.Function onmsinertiastart; + public java.util.function.Function onmsmanipulationstatechanged; + public java.util.function.Function onmspointercancel; + public java.util.function.Function onmspointerdown; + public java.util.function.Function onmspointerenter; + public java.util.function.Function onmspointerleave; + public java.util.function.Function onmspointermove; + public java.util.function.Function onmspointerout; + public java.util.function.Function onmspointerover; + public java.util.function.Function onmspointerup; + /** + * Occurs when an item is removed from a Jump List of a webpage running in Site Mode. + * @param ev The event. + */ + public java.util.function.Function onmssitemodejumplistitemremoved; + /** + * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode. + * @param ev The event. + */ + public java.util.function.Function onmsthumbnailclick; + /** + * Occurs when playback is paused. + * @param ev The event. + */ + public java.util.function.Function onpause; + /** + * Occurs when the play method is requested. + * @param ev The event. + */ + public java.util.function.Function onplay; + /** + * Occurs when the audio or video has started playing. + * @param ev The event. + */ + public java.util.function.Function onplaying; + public java.util.function.Function onpointerlockchange; + public java.util.function.Function onpointerlockerror; + /** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + */ + public java.util.function.Function onprogress; + /** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + */ + public java.util.function.Function onratechange; + /** + * Fires when the state of the object has changed. + * @param ev The event + */ + public java.util.function.Function onreadystatechange; + /** + * Fires when the user resets a form. + * @param ev The event. + */ + public java.util.function.Function onreset; + /** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + */ + public java.util.function.Function onscroll; + /** + * Occurs when the seek operation ends. + * @param ev The event. + */ + public java.util.function.Function onseeked; + /** + * Occurs when the current playback position is moved. + * @param ev The event. + */ + public java.util.function.Function onseeking; + /** + * Fires when the current selection changes. + * @param ev The event. + */ + public java.util.function.Function onselect; + public java.util.function.Function onselectstart; + /** + * Occurs when the download has stopped. + * @param ev The event. + */ + public java.util.function.Function onstalled; + /** + * Fires when the user clicks the Stop button or leaves the Web page. + * @param ev The event. + */ + public java.util.function.Function onstop; + public java.util.function.Function onsubmit; + /** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + */ + public java.util.function.Function onsuspend; + /** + * Occurs to indicate the current playback position. + * @param ev The event. + */ + public java.util.function.Function ontimeupdate; + public java.util.function.Function ontouchcancel; + public java.util.function.Function ontouchend; + public java.util.function.Function ontouchmove; + public java.util.function.Function ontouchstart; + /** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + */ + public java.util.function.Function onvolumechange; + /** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + */ + public java.util.function.Function onwaiting; + public java.util.function.Function onwebkitfullscreenchange; + public java.util.function.Function onwebkitfullscreenerror; + public HTMLCollection plugins; + public Element pointerLockElement; + /** + * Retrieves a value that indicates the current state of the object. + */ + public java.lang.String readyState; + /** + * Gets the URL of the location that referred the user to the current page. + */ + public java.lang.String referrer; + /** + * Gets the root svg element in the document hierarchy. + */ + public SVGSVGElement rootElement; + /** + * Retrieves a collection of all script objects in the document. + */ + public HTMLCollection scripts; + public java.lang.String security; + /** + * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. + */ + public StyleSheetList styleSheets; + /** + * Contains the title of the document. + */ + public java.lang.String title; + public java.lang.String visibilityState; + /** + * Sets or gets the color of the links that the user has visited. + */ + public java.lang.String vlinkColor; + public Element webkitCurrentFullScreenElement; + public Element webkitFullscreenElement; + public java.lang.Boolean webkitFullscreenEnabled; + public java.lang.Boolean webkitIsFullScreen; + public java.lang.String xmlEncoding; + public java.lang.Boolean xmlStandalone; + /** + * Gets or sets the version attribute specified in the declaration of an XML document. + */ + public java.lang.String xmlVersion; + native public Node adoptNode(Node source); + native public void captureEvents(); + native public void clear(); + /** + * Closes an output stream and forces the sent data to display. + */ + native public void close(); + /** + * Creates an attribute object with a specified name. + * @param name String that sets the attribute object's name. + */ + native public Attr createAttribute(java.lang.String name); + native public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName); + native public CDATASection createCDATASection(java.lang.String data); + /** + * Creates a comment object with the specified data. + * @param data Sets the comment object's data. + */ + native public Comment createComment(java.lang.String data); + /** + * Creates a new document. + */ + native public DocumentFragment createDocumentFragment(); + /** + * Creates an instance of the element for the specified tag. + * @param tagName The name of an element. + */ + native public HTMLAnchorElement createElement(def.js.StringTypes.a tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.abbr tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.acronym tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.address tagName); + native public HTMLAppletElement createElement(def.js.StringTypes.applet tagName); + native public HTMLAreaElement createElement(def.js.StringTypes.area tagName); + native public HTMLAudioElement createElement(def.js.StringTypes.audio tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.b tagName); + native public HTMLBaseElement createElement(def.js.StringTypes.base tagName); + native public HTMLBaseFontElement createElement(def.js.StringTypes.basefont tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.bdo tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.big tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.blockquote tagName); + native public HTMLBodyElement createElement(def.js.StringTypes.body tagName); + native public HTMLBRElement createElement(def.js.StringTypes.br tagName); + native public HTMLButtonElement createElement(def.js.StringTypes.button tagName); + native public HTMLCanvasElement createElement(def.js.StringTypes.canvas tagName); + native public HTMLTableCaptionElement createElement(def.js.StringTypes.caption tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.center tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.cite tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.code tagName); + native public HTMLTableColElement createElement(def.js.StringTypes.col tagName); + native public HTMLTableColElement createElement(def.js.StringTypes.colgroup tagName); + native public HTMLDataListElement createElement(def.js.StringTypes.datalist tagName); + native public HTMLDDElement createElement(def.js.StringTypes.dd tagName); + native public HTMLModElement createElement(def.js.StringTypes.del tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.dfn tagName); + native public HTMLDirectoryElement createElement(def.js.StringTypes.dir tagName); + native public HTMLDivElement createElement(def.js.StringTypes.div tagName); + native public HTMLDListElement createElement(def.js.StringTypes.dl tagName); + native public HTMLDTElement createElement(def.js.StringTypes.dt tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.em tagName); + native public HTMLEmbedElement createElement(def.js.StringTypes.embed tagName); + native public HTMLFieldSetElement createElement(def.js.StringTypes.fieldset tagName); + native public HTMLFontElement createElement(def.js.StringTypes.font tagName); + native public HTMLFormElement createElement(def.js.StringTypes.form tagName); + native public HTMLFrameElement createElement(def.js.StringTypes.frame tagName); + native public HTMLFrameSetElement createElement(def.js.StringTypes.frameset tagName); + native public HTMLHeadingElement createElement(def.js.StringTypes.h1 tagName); + native public HTMLHeadingElement createElement(def.js.StringTypes.h2 tagName); + native public HTMLHeadingElement createElement(def.js.StringTypes.h3 tagName); + native public HTMLHeadingElement createElement(def.js.StringTypes.h4 tagName); + native public HTMLHeadingElement createElement(def.js.StringTypes.h5 tagName); + native public HTMLHeadingElement createElement(def.js.StringTypes.h6 tagName); + native public HTMLHeadElement createElement(def.js.StringTypes.head tagName); + native public HTMLHRElement createElement(def.js.StringTypes.hr tagName); + native public HTMLHtmlElement createElement(def.js.StringTypes.html tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.i tagName); + native public HTMLIFrameElement createElement(def.js.StringTypes.iframe tagName); + native public HTMLImageElement createElement(def.js.StringTypes.img tagName); + native public HTMLInputElement createElement(def.js.StringTypes.input tagName); + native public HTMLModElement createElement(def.js.StringTypes.ins tagName); + native public HTMLIsIndexElement createElement(def.js.StringTypes.isindex tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.kbd tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.keygen tagName); + native public HTMLLabelElement createElement(def.js.StringTypes.label tagName); + native public HTMLLegendElement createElement(def.js.StringTypes.legend tagName); + native public HTMLLIElement createElement(def.js.StringTypes.li tagName); + native public HTMLLinkElement createElement(def.js.StringTypes.link tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.listing tagName); + native public HTMLMapElement createElement(def.js.StringTypes.map tagName); + native public HTMLMarqueeElement createElement(def.js.StringTypes.marquee tagName); + native public HTMLMenuElement createElement(def.js.StringTypes.menu tagName); + native public HTMLMetaElement createElement(def.js.StringTypes.meta tagName); + native public HTMLNextIdElement createElement(def.js.StringTypes.nextid tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.nobr tagName); + native public HTMLObjectElement createElement(def.js.StringTypes.object tagName); + native public HTMLOListElement createElement(def.js.StringTypes.ol tagName); + native public HTMLOptGroupElement createElement(def.js.StringTypes.optgroup tagName); + native public HTMLOptionElement createElement(def.js.StringTypes.option tagName); + native public HTMLParagraphElement createElement(def.js.StringTypes.p tagName); + native public HTMLParamElement createElement(def.js.StringTypes.param tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.plaintext tagName); + native public HTMLPreElement createElement(def.js.StringTypes.pre tagName); + native public HTMLProgressElement createElement(def.js.StringTypes.progress tagName); + native public HTMLQuoteElement createElement(def.js.StringTypes.q tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.rt tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.ruby tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.s tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.samp tagName); + native public HTMLScriptElement createElement(def.js.StringTypes.script tagName); + native public HTMLSelectElement createElement(def.js.StringTypes.select tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.small tagName); + native public HTMLSourceElement createElement(def.js.StringTypes.source tagName); + native public HTMLSpanElement createElement(def.js.StringTypes.span tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.strike tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.strong tagName); + native public HTMLStyleElement createElement(def.js.StringTypes.style tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.sub tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.sup tagName); + native public HTMLTableElement createElement(def.js.StringTypes.table tagName); + native public HTMLTableSectionElement createElement(def.js.StringTypes.tbody tagName); + native public HTMLTableDataCellElement createElement(def.js.StringTypes.td tagName); + native public HTMLTextAreaElement createElement(def.js.StringTypes.textarea tagName); + native public HTMLTableSectionElement createElement(def.js.StringTypes.tfoot tagName); + native public HTMLTableHeaderCellElement createElement(def.js.StringTypes.th tagName); + native public HTMLTableSectionElement createElement(def.js.StringTypes.thead tagName); + native public HTMLTitleElement createElement(def.js.StringTypes.title tagName); + native public HTMLTableRowElement createElement(def.js.StringTypes.tr tagName); + native public HTMLTrackElement createElement(def.js.StringTypes.track tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.tt tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.u tagName); + native public HTMLUListElement createElement(def.js.StringTypes.ul tagName); + native public HTMLPhraseElement createElement(def.js.StringTypes.var tagName); + native public HTMLVideoElement createElement(def.js.StringTypes.video tagName); + native public MSHTMLWebViewElement createElement(def.js.StringTypes.x_ms_webview tagName); + native public HTMLBlockElement createElement(def.js.StringTypes.xmp tagName); + native public HTMLElement createElement(java.lang.String tagName); + native public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName); + native public XPathExpression createExpression(java.lang.String expression, XPathNSResolver resolver); + native public XPathNSResolver createNSResolver(Node nodeResolver); + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public NodeIterator createNodeIterator(Node root, double whatToShow, NodeFilter filter, java.lang.Boolean entityReferenceExpansion); + native public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data); + /** + * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. + */ + native public Range createRange(); + /** + * Creates a text string from the specified value. + * @param data String that specifies the nodeValue property of the text node. + */ + native public Text createTextNode(java.lang.String data); + native public Touch createTouch(java.lang.Object view, EventTarget target, double identifier, double pageX, double pageY, double screenX, double screenY); + native public TouchList createTouchList(Touch... touches); + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public TreeWalker createTreeWalker(Node root, double whatToShow, NodeFilter filter, java.lang.Boolean entityReferenceExpansion); + /** + * Returns the element for the specified x coordinate and the specified y coordinate. + * @param x The x-offset + * @param y The y-offset + */ + native public Element elementFromPoint(double x, double y); + native public XPathResult evaluate(java.lang.String expression, Node contextNode, XPathNSResolver resolver, double type, XPathResult result); + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + */ + native public java.lang.Boolean execCommand(java.lang.String commandId, java.lang.Boolean showUI, java.lang.Object value); + /** + * Displays help information for the given command identifier. + * @param commandId Displays help information for the given command identifier. + */ + native public java.lang.Boolean execCommandShowHelp(java.lang.String commandId); + native public void exitFullscreen(); + native public void exitPointerLock(); + /** + * Causes the element to receive the focus and executes the code specified by the onfocus event. + */ + native public void focus(); + /** + * Returns a reference to the first object with the specified value of the ID or NAME attribute. + * @param elementId String that specifies the ID value. Case-insensitive. + */ + native public HTMLElement getElementById(java.lang.String elementId); + native public NodeList getElementsByClassName(java.lang.String classNames); + /** + * Gets a collection of objects based on the value of the NAME or ID attribute. + * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. + */ + native public NodeList getElementsByName(java.lang.String elementName); + /** + * Retrieves a collection of objects based on the specified element name. + * @param name Specifies the name of an element. + */ + native public NodeListOf getElementsByTagName(def.js.StringTypes.a tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.abbr tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.acronym tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.address tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.applet tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.area tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.article tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.aside tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.audio tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.b tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.base tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.basefont tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.bdo tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.big tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.blockquote tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.body tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.br tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.button tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.canvas tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.caption tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.center tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.circle tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.cite tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.clippath tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.code tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.col tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.colgroup tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.datalist tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dd tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.defs tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.del tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.desc tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dfn tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dir tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.div tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dl tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dt tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ellipse tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.em tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.embed tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feblend tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fecolormatrix tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fecomponenttransfer tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fecomposite tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feconvolvematrix tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fediffuselighting tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fedisplacementmap tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fedistantlight tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feflood tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefunca tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefuncb tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefuncg tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefuncr tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fegaussianblur tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feimage tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.femerge tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.femergenode tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.femorphology tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feoffset tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fepointlight tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fespecularlighting tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fespotlight tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fetile tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feturbulence tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fieldset tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.figcaption tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.figure tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.filter tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.font tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.footer tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.foreignobject tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.form tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.frame tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.frameset tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.g tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h1 tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h2 tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h3 tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h4 tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h5 tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h6 tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.head tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.header tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.hgroup tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.hr tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.html tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.i tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.iframe tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.image tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.img tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.input tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ins tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.isindex tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.kbd tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.keygen tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.label tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.legend tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.li tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.line tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.lineargradient tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.link tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.listing tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.map tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.mark tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.marker tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.marquee tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.mask tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.menu tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.meta tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.metadata tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.nav tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.nextid tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.nobr tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.noframes tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.noscript tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.object tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ol tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.optgroup tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.option tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.p tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.param tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.path tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.pattern tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.plaintext tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.polygon tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.polyline tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.pre tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.progress tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.q tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.radialgradient tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.rect tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.rt tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ruby tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.s tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.samp tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.script tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.section tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.select tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.small tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.source tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.span tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.stop tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.strike tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.strong tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.style tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.sub tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.sup tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.svg tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.Switch tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.symbol tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.table tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tbody tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.td tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.text tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.textpath tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.textarea tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tfoot tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.th tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.thead tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.title tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tr tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.track tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tspan tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tt tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.u tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ul tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.use tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.var tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.video tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.view tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.wbr tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.x_ms_webview tagname); + native public NodeListOf getElementsByTagName(def.js.StringTypes.xmp tagname); + native public NodeList getElementsByTagName(java.lang.String tagname); + native public NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName); + /** + * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. + */ + native public Selection getSelection(); + /** + * Gets a value indicating whether the object currently has focus. + */ + native public java.lang.Boolean hasFocus(); + native public Node importNode(Node importedNode, java.lang.Boolean deep); + native public NodeList msElementsFromPoint(double x, double y); + native public NodeList msElementsFromRect(double left, double top, double width, double height); + native public Document msGetPrintDocumentForNamedFlow(java.lang.String flowName); + native public void msSetPrintDocumentUriForNamedFlow(java.lang.String flowName, java.lang.String uri); + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + native public jsweet.util.union.Union open(java.lang.String url, java.lang.String name, java.lang.String features, java.lang.Boolean replace); + /** + * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. + * @param commandId Specifies a command identifier. + */ + native public java.lang.Boolean queryCommandEnabled(java.lang.String commandId); + /** + * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. + * @param commandId String that specifies a command identifier. + */ + native public java.lang.Boolean queryCommandIndeterm(java.lang.String commandId); + /** + * Returns a Boolean value that indicates the current state of the command. + * @param commandId String that specifies a command identifier. + */ + native public java.lang.Boolean queryCommandState(java.lang.String commandId); + /** + * Returns a Boolean value that indicates whether the current command is supported on the current range. + * @param commandId Specifies a command identifier. + */ + native public java.lang.Boolean queryCommandSupported(java.lang.String commandId); + /** + * Retrieves the string associated with a command. + * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers. + */ + native public java.lang.String queryCommandText(java.lang.String commandId); + /** + * Returns the current value of the document, range, or current selection for the given command. + * @param commandId String that specifies a command identifier. + */ + native public java.lang.String queryCommandValue(java.lang.String commandId); + native public void releaseEvents(); + /** + * Allows updating the print settings for the page. + */ + native public void updateSettings(); + native public void webkitCancelFullScreen(); + native public void webkitExitFullscreen(); + /** + * Writes one or more HTML expressions to a document in the specified window. + * @param content Specifies the text and HTML tags to write. + */ + native public void write(java.lang.String... content); + /** + * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. + * @param content The text and HTML tags to write. + */ + native public void writeln(java.lang.String... content); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.fullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.fullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mssitemodejumplistitemremoved type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.msthumbnailclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerlockchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerlockerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + public static Document prototype; + public Document(){} + public java.util.function.Function onpointercancel; + public java.util.function.Function onpointerdown; + public java.util.function.Function onpointerenter; + public java.util.function.Function onpointerleave; + public java.util.function.Function onpointermove; + public java.util.function.Function onpointerout; + public java.util.function.Function onpointerover; + public java.util.function.Function onpointerup; + public java.util.function.Function onwheel; + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public Element querySelector(java.lang.String selectors); + native public NodeList querySelectorAll(java.lang.String selectors); + native public AnimationEvent createEvent(def.js.StringTypes.AnimationEvent eventInterface); + native public AriaRequestEvent createEvent(def.js.StringTypes.AriaRequestEvent eventInterface); + native public AudioProcessingEvent createEvent(def.js.StringTypes.AudioProcessingEvent eventInterface); + native public BeforeUnloadEvent createEvent(def.js.StringTypes.BeforeUnloadEvent eventInterface); + native public ClipboardEvent createEvent(def.js.StringTypes.ClipboardEvent eventInterface); + native public CloseEvent createEvent(def.js.StringTypes.CloseEvent eventInterface); + native public CommandEvent createEvent(def.js.StringTypes.CommandEvent eventInterface); + native public CompositionEvent createEvent(def.js.StringTypes.CompositionEvent eventInterface); + native public CustomEvent createEvent(def.js.StringTypes.CustomEvent eventInterface); + native public DeviceMotionEvent createEvent(def.js.StringTypes.DeviceMotionEvent eventInterface); + native public DeviceOrientationEvent createEvent(def.js.StringTypes.DeviceOrientationEvent eventInterface); + native public DragEvent createEvent(def.js.StringTypes.DragEvent eventInterface); + native public ErrorEvent createEvent(def.js.StringTypes.ErrorEvent eventInterface); + native public Event createEvent(def.js.StringTypes.Event eventInterface); + native public Event createEvent(def.js.StringTypes.Events eventInterface); + native public FocusEvent createEvent(def.js.StringTypes.FocusEvent eventInterface); + native public GamepadEvent createEvent(def.js.StringTypes.GamepadEvent eventInterface); + native public HashChangeEvent createEvent(def.js.StringTypes.HashChangeEvent eventInterface); + native public IDBVersionChangeEvent createEvent(def.js.StringTypes.IDBVersionChangeEvent eventInterface); + native public KeyboardEvent createEvent(def.js.StringTypes.KeyboardEvent eventInterface); + native public LongRunningScriptDetectedEvent createEvent(def.js.StringTypes.LongRunningScriptDetectedEvent eventInterface); + native public MSGestureEvent createEvent(def.js.StringTypes.MSGestureEvent eventInterface); + native public MSManipulationEvent createEvent(def.js.StringTypes.MSManipulationEvent eventInterface); + native public MSMediaKeyMessageEvent createEvent(def.js.StringTypes.MSMediaKeyMessageEvent eventInterface); + native public MSMediaKeyNeededEvent createEvent(def.js.StringTypes.MSMediaKeyNeededEvent eventInterface); + native public MSPointerEvent createEvent(def.js.StringTypes.MSPointerEvent eventInterface); + native public MSSiteModeEvent createEvent(def.js.StringTypes.MSSiteModeEvent eventInterface); + native public MessageEvent createEvent(def.js.StringTypes.MessageEvent eventInterface); + native public MouseEvent createEvent(def.js.StringTypes.MouseEvent eventInterface); + native public MouseEvent createEvent(def.js.StringTypes.MouseEvents eventInterface); + native public MouseWheelEvent createEvent(def.js.StringTypes.MouseWheelEvent eventInterface); + native public MutationEvent createEvent(def.js.StringTypes.MutationEvent eventInterface); + native public MutationEvent createEvent(def.js.StringTypes.MutationEvents eventInterface); + native public NavigationCompletedEvent createEvent(def.js.StringTypes.NavigationCompletedEvent eventInterface); + native public NavigationEvent createEvent(def.js.StringTypes.NavigationEvent eventInterface); + native public NavigationEventWithReferrer createEvent(def.js.StringTypes.NavigationEventWithReferrer eventInterface); + native public OfflineAudioCompletionEvent createEvent(def.js.StringTypes.OfflineAudioCompletionEvent eventInterface); + native public PageTransitionEvent createEvent(def.js.StringTypes.PageTransitionEvent eventInterface); + native public PermissionRequestedEvent createEvent(def.js.StringTypes.PermissionRequestedEvent eventInterface); + native public PointerEvent createEvent(def.js.StringTypes.PointerEvent eventInterface); + native public PopStateEvent createEvent(def.js.StringTypes.PopStateEvent eventInterface); + native public ProgressEvent createEvent(def.js.StringTypes.ProgressEvent eventInterface); + native public SVGZoomEvent createEvent(def.js.StringTypes.SVGZoomEvent eventInterface); + native public SVGZoomEvent createEvent(def.js.StringTypes.SVGZoomEvents eventInterface); + native public ScriptNotifyEvent createEvent(def.js.StringTypes.ScriptNotifyEvent eventInterface); + native public StorageEvent createEvent(def.js.StringTypes.StorageEvent eventInterface); + native public TextEvent createEvent(def.js.StringTypes.TextEvent eventInterface); + native public TouchEvent createEvent(def.js.StringTypes.TouchEvent eventInterface); + native public TrackEvent createEvent(def.js.StringTypes.TrackEvent eventInterface); + native public TransitionEvent createEvent(def.js.StringTypes.TransitionEvent eventInterface); + native public UIEvent createEvent(def.js.StringTypes.UIEvent eventInterface); + native public UIEvent createEvent(def.js.StringTypes.UIEvents eventInterface); + native public UnviewableContentIdentifiedEvent createEvent(def.js.StringTypes.UnviewableContentIdentifiedEvent eventInterface); + native public WebGLContextEvent createEvent(def.js.StringTypes.WebGLContextEvent eventInterface); + native public WheelEvent createEvent(def.js.StringTypes.WheelEvent eventInterface); + native public Event createEvent(java.lang.String eventInterface); + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public NodeIterator createNodeIterator(Node root, double whatToShow, NodeFilter filter); + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public NodeIterator createNodeIterator(Node root, double whatToShow); + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public NodeIterator createNodeIterator(Node root); + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public TreeWalker createTreeWalker(Node root, double whatToShow, NodeFilter filter); + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public TreeWalker createTreeWalker(Node root, double whatToShow); + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + native public TreeWalker createTreeWalker(Node root); + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + */ + native public java.lang.Boolean execCommand(java.lang.String commandId, java.lang.Boolean showUI); + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + */ + native public java.lang.Boolean execCommand(java.lang.String commandId); + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + native public jsweet.util.union.Union open(java.lang.String url, java.lang.String name, java.lang.String features); + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + native public jsweet.util.union.Union open(java.lang.String url, java.lang.String name); + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + native public jsweet.util.union.Union open(java.lang.String url); + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + native public jsweet.util.union.Union open(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.fullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.fullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mssitemodejumplistitemremoved type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.msthumbnailclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerlockchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerlockerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DocumentEvent.java b/core-lib/es6/src/main/java/def/dom/DocumentEvent.java new file mode 100644 index 00000000..6ebc846e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DocumentEvent.java @@ -0,0 +1,87 @@ +package def.dom; + +import def.js.Object; +import def.js.StringTypes; +import def.js.StringTypes.DeviceMotionEvent; +import def.js.StringTypes.DeviceOrientationEvent; +import def.js.StringTypes.DragEvent; +import def.js.StringTypes.ErrorEvent; +import def.js.StringTypes.Event; +import def.js.StringTypes.Events; +import def.js.StringTypes.FocusEvent; +import def.js.StringTypes.LongRunningScriptDetectedEvent; +import def.js.StringTypes.MessageEvent; +import def.js.StringTypes.MouseEvents; +import def.js.StringTypes.MouseWheelEvent; +import def.js.StringTypes.MutationEvent; +import def.js.StringTypes.MutationEvents; +import def.js.StringTypes.NavigationEventWithReferrer; +import def.js.StringTypes.OfflineAudioCompletionEvent; +import def.js.StringTypes.PageTransitionEvent; +import def.js.StringTypes.PopStateEvent; +import def.js.StringTypes.SVGZoomEvents; +import def.js.StringTypes.StorageEvent; +import def.js.StringTypes.TransitionEvent; +import def.js.StringTypes.UIEvents; +import def.js.StringTypes.WebGLContextEvent; + +@jsweet.lang.Interface +public abstract class DocumentEvent extends def.js.Object { + native public AnimationEvent createEvent(def.js.StringTypes.AnimationEvent eventInterface); + native public AriaRequestEvent createEvent(def.js.StringTypes.AriaRequestEvent eventInterface); + native public AudioProcessingEvent createEvent(def.js.StringTypes.AudioProcessingEvent eventInterface); + native public BeforeUnloadEvent createEvent(def.js.StringTypes.BeforeUnloadEvent eventInterface); + native public ClipboardEvent createEvent(def.js.StringTypes.ClipboardEvent eventInterface); + native public CloseEvent createEvent(def.js.StringTypes.CloseEvent eventInterface); + native public CommandEvent createEvent(def.js.StringTypes.CommandEvent eventInterface); + native public CompositionEvent createEvent(def.js.StringTypes.CompositionEvent eventInterface); + native public CustomEvent createEvent(def.js.StringTypes.CustomEvent eventInterface); + native public DeviceMotionEvent createEvent(def.js.StringTypes.DeviceMotionEvent eventInterface); + native public DeviceOrientationEvent createEvent(def.js.StringTypes.DeviceOrientationEvent eventInterface); + native public DragEvent createEvent(def.js.StringTypes.DragEvent eventInterface); + native public ErrorEvent createEvent(def.js.StringTypes.ErrorEvent eventInterface); + native public Event createEvent(def.js.StringTypes.Event eventInterface); + native public Event createEvent(def.js.StringTypes.Events eventInterface); + native public FocusEvent createEvent(def.js.StringTypes.FocusEvent eventInterface); + native public GamepadEvent createEvent(def.js.StringTypes.GamepadEvent eventInterface); + native public HashChangeEvent createEvent(def.js.StringTypes.HashChangeEvent eventInterface); + native public IDBVersionChangeEvent createEvent(def.js.StringTypes.IDBVersionChangeEvent eventInterface); + native public KeyboardEvent createEvent(def.js.StringTypes.KeyboardEvent eventInterface); + native public LongRunningScriptDetectedEvent createEvent(def.js.StringTypes.LongRunningScriptDetectedEvent eventInterface); + native public MSGestureEvent createEvent(def.js.StringTypes.MSGestureEvent eventInterface); + native public MSManipulationEvent createEvent(def.js.StringTypes.MSManipulationEvent eventInterface); + native public MSMediaKeyMessageEvent createEvent(def.js.StringTypes.MSMediaKeyMessageEvent eventInterface); + native public MSMediaKeyNeededEvent createEvent(def.js.StringTypes.MSMediaKeyNeededEvent eventInterface); + native public MSPointerEvent createEvent(def.js.StringTypes.MSPointerEvent eventInterface); + native public MSSiteModeEvent createEvent(def.js.StringTypes.MSSiteModeEvent eventInterface); + native public MessageEvent createEvent(def.js.StringTypes.MessageEvent eventInterface); + native public MouseEvent createEvent(def.js.StringTypes.MouseEvent eventInterface); + native public MouseEvent createEvent(def.js.StringTypes.MouseEvents eventInterface); + native public MouseWheelEvent createEvent(def.js.StringTypes.MouseWheelEvent eventInterface); + native public MutationEvent createEvent(def.js.StringTypes.MutationEvent eventInterface); + native public MutationEvent createEvent(def.js.StringTypes.MutationEvents eventInterface); + native public NavigationCompletedEvent createEvent(def.js.StringTypes.NavigationCompletedEvent eventInterface); + native public NavigationEvent createEvent(def.js.StringTypes.NavigationEvent eventInterface); + native public NavigationEventWithReferrer createEvent(def.js.StringTypes.NavigationEventWithReferrer eventInterface); + native public OfflineAudioCompletionEvent createEvent(def.js.StringTypes.OfflineAudioCompletionEvent eventInterface); + native public PageTransitionEvent createEvent(def.js.StringTypes.PageTransitionEvent eventInterface); + native public PermissionRequestedEvent createEvent(def.js.StringTypes.PermissionRequestedEvent eventInterface); + native public PointerEvent createEvent(def.js.StringTypes.PointerEvent eventInterface); + native public PopStateEvent createEvent(def.js.StringTypes.PopStateEvent eventInterface); + native public ProgressEvent createEvent(def.js.StringTypes.ProgressEvent eventInterface); + native public SVGZoomEvent createEvent(def.js.StringTypes.SVGZoomEvent eventInterface); + native public SVGZoomEvent createEvent(def.js.StringTypes.SVGZoomEvents eventInterface); + native public ScriptNotifyEvent createEvent(def.js.StringTypes.ScriptNotifyEvent eventInterface); + native public StorageEvent createEvent(def.js.StringTypes.StorageEvent eventInterface); + native public TextEvent createEvent(def.js.StringTypes.TextEvent eventInterface); + native public TouchEvent createEvent(def.js.StringTypes.TouchEvent eventInterface); + native public TrackEvent createEvent(def.js.StringTypes.TrackEvent eventInterface); + native public TransitionEvent createEvent(def.js.StringTypes.TransitionEvent eventInterface); + native public UIEvent createEvent(def.js.StringTypes.UIEvent eventInterface); + native public UIEvent createEvent(def.js.StringTypes.UIEvents eventInterface); + native public UnviewableContentIdentifiedEvent createEvent(def.js.StringTypes.UnviewableContentIdentifiedEvent eventInterface); + native public WebGLContextEvent createEvent(def.js.StringTypes.WebGLContextEvent eventInterface); + native public WheelEvent createEvent(def.js.StringTypes.WheelEvent eventInterface); + native public Event createEvent(java.lang.String eventInterface); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DocumentFragment.java b/core-lib/es6/src/main/java/def/dom/DocumentFragment.java new file mode 100644 index 00000000..5b3a6351 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DocumentFragment.java @@ -0,0 +1,14 @@ +package def.dom; + +@jsweet.lang.Extends({NodeSelector.class}) +public class DocumentFragment extends Node { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static DocumentFragment prototype; + public DocumentFragment(){} + native public Element querySelector(java.lang.String selectors); + native public NodeList querySelectorAll(java.lang.String selectors); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DocumentType.java b/core-lib/es6/src/main/java/def/dom/DocumentType.java new file mode 100644 index 00000000..154a9320 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DocumentType.java @@ -0,0 +1,19 @@ +package def.dom; + +@jsweet.lang.Extends({ChildNode.class}) +public class DocumentType extends Node { + public NamedNodeMap entities; + public java.lang.String internalSubset; + public java.lang.String name; + public NamedNodeMap notations; + public java.lang.String publicId; + public java.lang.String systemId; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static DocumentType prototype; + public DocumentType(){} + native public void remove(); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DragEvent.java b/core-lib/es6/src/main/java/def/dom/DragEvent.java new file mode 100644 index 00000000..3d142132 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DragEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class DragEvent extends MouseEvent { + public DataTransfer dataTransfer; + native public void initDragEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, java.lang.Boolean ctrlKeyArg, java.lang.Boolean altKeyArg, java.lang.Boolean shiftKeyArg, java.lang.Boolean metaKeyArg, double buttonArg, EventTarget relatedTargetArg, DataTransfer dataTransferArg); + native public void msConvertURL(File file, java.lang.String targetType, java.lang.String targetURL); + public static DragEvent prototype; + public DragEvent(){} + native public void msConvertURL(File file, java.lang.String targetType); +} + diff --git a/core-lib/es6/src/main/java/def/dom/DynamicsCompressorNode.java b/core-lib/es6/src/main/java/def/dom/DynamicsCompressorNode.java new file mode 100644 index 00000000..73765306 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/DynamicsCompressorNode.java @@ -0,0 +1,13 @@ +package def.dom; + +public class DynamicsCompressorNode extends AudioNode { + public AudioParam attack; + public AudioParam knee; + public AudioParam ratio; + public AudioParam reduction; + public AudioParam release; + public AudioParam threshold; + public static DynamicsCompressorNode prototype; + public DynamicsCompressorNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/EXT_texture_filter_anisotropic.java b/core-lib/es6/src/main/java/def/dom/EXT_texture_filter_anisotropic.java new file mode 100644 index 00000000..8ae7aaae --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/EXT_texture_filter_anisotropic.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class EXT_texture_filter_anisotropic extends def.js.Object { + public double MAX_TEXTURE_MAX_ANISOTROPY_EXT; + public double TEXTURE_MAX_ANISOTROPY_EXT; + public static EXT_texture_filter_anisotropic prototype; + public EXT_texture_filter_anisotropic(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Element.java b/core-lib/es6/src/main/java/def/dom/Element.java new file mode 100644 index 00000000..4528bee8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Element.java @@ -0,0 +1,350 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +@jsweet.lang.Extends({GlobalEventHandlers.class,ElementTraversal.class,NodeSelector.class,ChildNode.class}) +public class Element extends Node { + public DOMTokenList classList; + public double clientHeight; + public double clientLeft; + public double clientTop; + public double clientWidth; + public double msContentZoomFactor; + public java.lang.String msRegionOverflow; + public java.util.function.Function onariarequest; + public java.util.function.Function oncommand; + public java.util.function.Function ongotpointercapture; + public java.util.function.Function onlostpointercapture; + public java.util.function.Function onmsgesturechange; + public java.util.function.Function onmsgesturedoubletap; + public java.util.function.Function onmsgestureend; + public java.util.function.Function onmsgesturehold; + public java.util.function.Function onmsgesturestart; + public java.util.function.Function onmsgesturetap; + public java.util.function.Function onmsgotpointercapture; + public java.util.function.Function onmsinertiastart; + public java.util.function.Function onmslostpointercapture; + public java.util.function.Function onmspointercancel; + public java.util.function.Function onmspointerdown; + public java.util.function.Function onmspointerenter; + public java.util.function.Function onmspointerleave; + public java.util.function.Function onmspointermove; + public java.util.function.Function onmspointerout; + public java.util.function.Function onmspointerover; + public java.util.function.Function onmspointerup; + public java.util.function.Function ontouchcancel; + public java.util.function.Function ontouchend; + public java.util.function.Function ontouchmove; + public java.util.function.Function ontouchstart; + public java.util.function.Function onwebkitfullscreenchange; + public java.util.function.Function onwebkitfullscreenerror; + public double scrollHeight; + public double scrollLeft; + public double scrollTop; + public double scrollWidth; + public java.lang.String tagName; + native public java.lang.String getAttribute(java.lang.String name); + native public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName); + native public Attr getAttributeNode(java.lang.String name); + native public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName); + native public ClientRect getBoundingClientRect(); + native public ClientRectList getClientRects(); + native public NodeListOf getElementsByTagName(def.js.StringTypes.a name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.abbr name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.acronym name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.address name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.applet name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.area name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.article name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.aside name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.audio name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.b name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.base name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.basefont name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.bdo name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.big name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.blockquote name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.body name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.br name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.button name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.canvas name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.caption name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.center name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.circle name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.cite name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.clippath name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.code name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.col name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.colgroup name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.datalist name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dd name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.defs name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.del name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.desc name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dfn name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dir name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.div name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dl name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.dt name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ellipse name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.em name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.embed name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feblend name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fecolormatrix name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fecomponenttransfer name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fecomposite name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feconvolvematrix name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fediffuselighting name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fedisplacementmap name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fedistantlight name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feflood name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefunca name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefuncb name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefuncg name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fefuncr name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fegaussianblur name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feimage name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.femerge name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.femergenode name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.femorphology name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feoffset name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fepointlight name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fespecularlighting name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fespotlight name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fetile name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.feturbulence name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.fieldset name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.figcaption name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.figure name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.filter name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.font name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.footer name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.foreignobject name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.form name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.frame name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.frameset name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.g name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h1 name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h2 name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h3 name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h4 name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h5 name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.h6 name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.head name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.header name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.hgroup name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.hr name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.html name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.i name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.iframe name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.image name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.img name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.input name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ins name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.isindex name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.kbd name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.keygen name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.label name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.legend name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.li name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.line name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.lineargradient name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.link name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.listing name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.map name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.mark name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.marker name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.marquee name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.mask name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.menu name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.meta name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.metadata name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.nav name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.nextid name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.nobr name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.noframes name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.noscript name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.object name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ol name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.optgroup name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.option name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.p name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.param name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.path name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.pattern name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.plaintext name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.polygon name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.polyline name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.pre name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.progress name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.q name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.radialgradient name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.rect name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.rt name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ruby name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.s name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.samp name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.script name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.section name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.select name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.small name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.source name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.span name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.stop name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.strike name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.strong name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.style name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.sub name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.sup name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.svg name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.Switch name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.symbol name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.table name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tbody name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.td name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.text name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.textpath name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.textarea name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tfoot name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.th name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.thead name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.title name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tr name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.track name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tspan name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.tt name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.u name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.ul name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.use name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.var name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.video name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.view name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.wbr name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.x_ms_webview name); + native public NodeListOf getElementsByTagName(def.js.StringTypes.xmp name); + native public NodeList getElementsByTagName(java.lang.String name); + native public NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName); + native public java.lang.Boolean hasAttribute(java.lang.String name); + native public java.lang.Boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName); + native public MSRangeCollection msGetRegionContent(); + native public ClientRect msGetUntransformedBounds(); + native public java.lang.Boolean msMatchesSelector(java.lang.String selectors); + native public void msReleasePointerCapture(double pointerId); + native public void msSetPointerCapture(double pointerId); + native public void msZoomTo(MsZoomToOptions args); + native public void releasePointerCapture(double pointerId); + native public void removeAttribute(java.lang.String name); + native public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName); + native public Attr removeAttributeNode(Attr oldAttr); + native public void requestFullscreen(); + native public void requestPointerLock(); + native public void setAttribute(java.lang.String name, java.lang.String value); + native public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value); + native public Attr setAttributeNode(Attr newAttr); + native public Attr setAttributeNodeNS(Attr newAttr); + native public void setPointerCapture(double pointerId); + native public java.lang.Boolean webkitMatchesSelector(java.lang.String selectors); + native public void webkitRequestFullScreen(); + native public void webkitRequestFullscreen(); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + public static Element prototype; + public Element(){} + public java.util.function.Function onpointercancel; + public java.util.function.Function onpointerdown; + public java.util.function.Function onpointerenter; + public java.util.function.Function onpointerleave; + public java.util.function.Function onpointermove; + public java.util.function.Function onpointerout; + public java.util.function.Function onpointerover; + public java.util.function.Function onpointerup; + public java.util.function.Function onwheel; + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public double childElementCount; + public Element firstElementChild; + public Element lastElementChild; + public Element nextElementSibling; + public Element previousElementSibling; + native public Element querySelector(java.lang.String selectors); + native public NodeList querySelectorAll(java.lang.String selectors); + native public void remove(); + native public java.lang.String getAttribute(); + native public void removeAttribute(); + native public void setAttribute(java.lang.String name); + native public void setAttribute(); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ElementTraversal.java b/core-lib/es6/src/main/java/def/dom/ElementTraversal.java new file mode 100644 index 00000000..dba698b2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ElementTraversal.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class ElementTraversal extends def.js.Object { + public double childElementCount; + public Element firstElementChild; + public Element lastElementChild; + public Element nextElementSibling; + public Element previousElementSibling; +} + diff --git a/core-lib/es6/src/main/java/def/dom/ErrorEvent.java b/core-lib/es6/src/main/java/def/dom/ErrorEvent.java new file mode 100644 index 00000000..c40edbcb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ErrorEvent.java @@ -0,0 +1,13 @@ +package def.dom; + +public class ErrorEvent extends Event { + public double colno; + public java.lang.Object error; + public java.lang.String filename; + public double lineno; + public java.lang.String message; + native public void initErrorEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.String messageArg, java.lang.String filenameArg, double linenoArg); + public static ErrorEvent prototype; + public ErrorEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ErrorEventHandler.java b/core-lib/es6/src/main/java/def/dom/ErrorEventHandler.java new file mode 100644 index 00000000..84aa7e83 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ErrorEventHandler.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class ErrorEventHandler extends def.js.Object { + native public void apply(Event event, java.lang.String source, double fileno, double columnNumber); + native public void apply(java.lang.String event, java.lang.String source, double fileno, double columnNumber); + native public void apply(Event event, java.lang.String source, double fileno); + native public void apply(Event event, java.lang.String source); + native public void apply(Event event); + native public void apply(java.lang.String event, java.lang.String source, double fileno); + native public void apply(java.lang.String event, java.lang.String source); + native public void apply(java.lang.String event); +} + diff --git a/core-lib/es6/src/main/java/def/dom/Event.java b/core-lib/es6/src/main/java/def/dom/Event.java new file mode 100644 index 00000000..a0b3181e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Event.java @@ -0,0 +1,30 @@ +package def.dom; + +import def.js.Object; + +public class Event extends def.js.Object { + public java.lang.Boolean bubbles; + public java.lang.Boolean cancelBubble; + public java.lang.Boolean cancelable; + public EventTarget currentTarget; + public java.lang.Boolean defaultPrevented; + public double eventPhase; + public java.lang.Boolean isTrusted; + public java.lang.Boolean returnValue; + public Element srcElement; + public EventTarget target; + public double timeStamp; + public java.lang.String type; + native public void initEvent(java.lang.String eventTypeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg); + native public void preventDefault(); + native public void stopImmediatePropagation(); + native public void stopPropagation(); + public double AT_TARGET; + public double BUBBLING_PHASE; + public double CAPTURING_PHASE; + public static Event prototype; + public Event(java.lang.String type, EventInit eventInitDict){} + public Event(java.lang.String type){} + protected Event(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/EventInit.java b/core-lib/es6/src/main/java/def/dom/EventInit.java new file mode 100644 index 00000000..8dc3c139 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/EventInit.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class EventInit extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean bubbles; + @jsweet.lang.Optional + public java.lang.Boolean cancelable; +} + diff --git a/core-lib/es6/src/main/java/def/dom/EventListener.java b/core-lib/es6/src/main/java/def/dom/EventListener.java new file mode 100644 index 00000000..1fd7b101 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/EventListener.java @@ -0,0 +1,5 @@ +package def.dom; +public interface EventListener { + public void apply(Event evt); +} + diff --git a/core-lib/es6/src/main/java/def/dom/EventListenerObject.java b/core-lib/es6/src/main/java/def/dom/EventListenerObject.java new file mode 100644 index 00000000..770c782e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/EventListenerObject.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class EventListenerObject extends def.js.Object { + native public void handleEvent(Event evt); +} + diff --git a/core-lib/es6/src/main/java/def/dom/EventTarget.java b/core-lib/es6/src/main/java/def/dom/EventTarget.java new file mode 100644 index 00000000..a7bae731 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/EventTarget.java @@ -0,0 +1,18 @@ +package def.dom; + +import def.js.Object; + +public class EventTarget extends def.js.Object { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public java.lang.Boolean dispatchEvent(Event evt); + native public void removeEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static EventTarget prototype; + public EventTarget(){} + native public void addEventListener(java.lang.String type, EventListener listener); + native public void removeEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void removeEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + native public void removeEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ExceptionInformation.java b/core-lib/es6/src/main/java/def/dom/ExceptionInformation.java new file mode 100644 index 00000000..c1f6b416 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ExceptionInformation.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class ExceptionInformation extends def.js.Object { + @jsweet.lang.Optional + public java.lang.String domain; +} + diff --git a/core-lib/es6/src/main/java/def/dom/External.java b/core-lib/es6/src/main/java/def/dom/External.java new file mode 100644 index 00000000..29a5a4a0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/External.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class External extends def.js.Object { + public static External prototype; + public External(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/File.java b/core-lib/es6/src/main/java/def/dom/File.java new file mode 100644 index 00000000..06a3d836 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/File.java @@ -0,0 +1,9 @@ +package def.dom; + +public class File extends Blob { + public java.lang.Object lastModifiedDate; + public java.lang.String name; + public static File prototype; + public File(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/FileList.java b/core-lib/es6/src/main/java/def/dom/FileList.java new file mode 100644 index 00000000..46e2103d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FileList.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class FileList extends Iterable { + public double length; + native public File item(double index); + native public File $get(double index); + public static FileList prototype; + public FileList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/FileReader.java b/core-lib/es6/src/main/java/def/dom/FileReader.java new file mode 100644 index 00000000..d014ebc3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FileReader.java @@ -0,0 +1,50 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; +import def.js.StringTypes.load; +import def.js.StringTypes.loadend; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.progress; + +@jsweet.lang.Extends({MSBaseReader.class}) +public class FileReader extends EventTarget { + public DOMError error; + native public void readAsArrayBuffer(Blob blob); + native public void readAsBinaryString(Blob blob); + native public void readAsDataURL(Blob blob); + native public void readAsText(Blob blob, java.lang.String encoding); + public static FileReader prototype; + public FileReader(){} + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public java.util.function.Function onloadend; + public java.util.function.Function onloadstart; + public java.util.function.Function onprogress; + public double readyState; + public java.lang.Object result; + native public void abort(); + public double DONE; + public double EMPTY; + public double LOADING; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void readAsText(Blob blob); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/FocusEvent.java b/core-lib/es6/src/main/java/def/dom/FocusEvent.java new file mode 100644 index 00000000..2bb2dcc8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FocusEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class FocusEvent extends UIEvent { + public EventTarget relatedTarget; + native public void initFocusEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, EventTarget relatedTargetArg); + public static FocusEvent prototype; + public FocusEvent(java.lang.String typeArg, FocusEventInit eventInitDict){} + public FocusEvent(java.lang.String typeArg){} + protected FocusEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/FocusEventInit.java b/core-lib/es6/src/main/java/def/dom/FocusEventInit.java new file mode 100644 index 00000000..2fb36240 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FocusEventInit.java @@ -0,0 +1,8 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class FocusEventInit extends UIEventInit { + @jsweet.lang.Optional + public EventTarget relatedTarget; +} + diff --git a/core-lib/es6/src/main/java/def/dom/FormData.java b/core-lib/es6/src/main/java/def/dom/FormData.java new file mode 100644 index 00000000..ac591b7f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FormData.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class FormData extends def.js.Object { + native public void append(java.lang.Object name, java.lang.Object value, java.lang.String blobName); + public static FormData prototype; + public FormData(){} + native public void append(java.lang.Object name, java.lang.Object value); +} + diff --git a/core-lib/es6/src/main/java/def/dom/FrameRequestCallback.java b/core-lib/es6/src/main/java/def/dom/FrameRequestCallback.java new file mode 100644 index 00000000..b239db1e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FrameRequestCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface FrameRequestCallback { + public void apply(double time); +} + diff --git a/core-lib/es6/src/main/java/def/dom/FunctionStringCallback.java b/core-lib/es6/src/main/java/def/dom/FunctionStringCallback.java new file mode 100644 index 00000000..880e6ff5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/FunctionStringCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface FunctionStringCallback { + public void apply(java.lang.String data); +} + diff --git a/core-lib/es6/src/main/java/def/dom/GainNode.java b/core-lib/es6/src/main/java/def/dom/GainNode.java new file mode 100644 index 00000000..d54b8600 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/GainNode.java @@ -0,0 +1,8 @@ +package def.dom; + +public class GainNode extends AudioNode { + public AudioParam gain; + public static GainNode prototype; + public GainNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Gamepad.java b/core-lib/es6/src/main/java/def/dom/Gamepad.java new file mode 100644 index 00000000..fa2b235d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Gamepad.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class Gamepad extends def.js.Object { + public double[] axes; + public GamepadButton[] buttons; + public java.lang.Boolean connected; + public java.lang.String id; + public double index; + public java.lang.String mapping; + public double timestamp; + public static Gamepad prototype; + public Gamepad(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/GamepadButton.java b/core-lib/es6/src/main/java/def/dom/GamepadButton.java new file mode 100644 index 00000000..59c0930e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/GamepadButton.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class GamepadButton extends def.js.Object { + public java.lang.Boolean pressed; + public double value; + public static GamepadButton prototype; + public GamepadButton(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/GamepadEvent.java b/core-lib/es6/src/main/java/def/dom/GamepadEvent.java new file mode 100644 index 00000000..66b0ce25 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/GamepadEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class GamepadEvent extends Event { + public Gamepad gamepad; + public static GamepadEvent prototype; + public GamepadEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Geolocation.java b/core-lib/es6/src/main/java/def/dom/Geolocation.java new file mode 100644 index 00000000..c254b966 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Geolocation.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class Geolocation extends def.js.Object { + native public void clearWatch(double watchId); + native public void getCurrentPosition(PositionCallback successCallback, PositionErrorCallback errorCallback, PositionOptions options); + native public double watchPosition(PositionCallback successCallback, PositionErrorCallback errorCallback, PositionOptions options); + public static Geolocation prototype; + public Geolocation(){} + native public void getCurrentPosition(PositionCallback successCallback, PositionErrorCallback errorCallback); + native public void getCurrentPosition(PositionCallback successCallback); + native public double watchPosition(PositionCallback successCallback, PositionErrorCallback errorCallback); + native public double watchPosition(PositionCallback successCallback); +} + diff --git a/core-lib/es6/src/main/java/def/dom/GetSVGDocument.java b/core-lib/es6/src/main/java/def/dom/GetSVGDocument.java new file mode 100644 index 00000000..8a309b0c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/GetSVGDocument.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class GetSVGDocument extends def.js.Object { + native public Document getSVGDocument(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/GlobalEventHandlers.java b/core-lib/es6/src/main/java/def/dom/GlobalEventHandlers.java new file mode 100644 index 00000000..c299dec1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/GlobalEventHandlers.java @@ -0,0 +1,49 @@ +package def.dom; + +import def.js.Object; +import def.js.StringTypes; +import def.js.StringTypes.pointercancel; +import def.js.StringTypes.pointerdown; +import def.js.StringTypes.pointerenter; +import def.js.StringTypes.pointerleave; +import def.js.StringTypes.pointermove; +import def.js.StringTypes.pointerout; +import def.js.StringTypes.pointerover; +import def.js.StringTypes.pointerup; +import def.js.StringTypes.wheel; + +@jsweet.lang.Interface +public abstract class GlobalEventHandlers extends def.js.Object { + public java.util.function.Function onpointercancel; + public java.util.function.Function onpointerdown; + public java.util.function.Function onpointerenter; + public java.util.function.Function onpointerleave; + public java.util.function.Function onpointermove; + public java.util.function.Function onpointerout; + public java.util.function.Function onpointerover; + public java.util.function.Function onpointerup; + public java.util.function.Function onwheel; + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLAllCollection.java b/core-lib/es6/src/main/java/def/dom/HTMLAllCollection.java new file mode 100644 index 00000000..8c41011c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLAllCollection.java @@ -0,0 +1,8 @@ +package def.dom; + +public class HTMLAllCollection extends HTMLCollection { + native public Element namedItem(java.lang.String name); + public static HTMLAllCollection prototype; + public HTMLAllCollection(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLAnchorElement.java b/core-lib/es6/src/main/java/def/dom/HTMLAnchorElement.java new file mode 100644 index 00000000..ea7acfdc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLAnchorElement.java @@ -0,0 +1,84 @@ +package def.dom; +public class HTMLAnchorElement extends HTMLElement { + public java.lang.String Methods; + /** + * Sets or retrieves the character set used to encode the object. + */ + public java.lang.String charset; + /** + * Sets or retrieves the coordinates of the object. + */ + public java.lang.String coords; + /** + * Contains the anchor portion of the URL including the hash sign (#). + */ + public java.lang.String hash; + /** + * Contains the hostname and port values of the URL. + */ + public java.lang.String host; + /** + * Contains the hostname of a URL. + */ + public java.lang.String hostname; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + public java.lang.String href; + /** + * Sets or retrieves the language code of the object. + */ + public java.lang.String hreflang; + public java.lang.String mimeType; + /** + * Sets or retrieves the shape of the object. + */ + public java.lang.String name; + public java.lang.String nameProp; + /** + * Contains the pathname of the URL. + */ + public java.lang.String pathname; + /** + * Sets or retrieves the port number associated with a URL. + */ + public java.lang.String port; + /** + * Contains the protocol of the URL. + */ + public java.lang.String protocol; + public java.lang.String protocolLong; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + public java.lang.String rel; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + public java.lang.String rev; + /** + * Sets or retrieves the substring of the href property that follows the question mark. + */ + public java.lang.String search; + /** + * Sets or retrieves the shape of the object. + */ + public java.lang.String shape; + /** + * Sets or retrieves the window or frame at which to target content. + */ + public java.lang.String target; + /** + * Retrieves or sets the text of the object as a string. + */ + public java.lang.String text; + public java.lang.String type; + public java.lang.String urn; + /** + * Returns a string representation of an object. + */ + native public java.lang.String toString(); + public static HTMLAnchorElement prototype; + public HTMLAnchorElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLAppletElement.java b/core-lib/es6/src/main/java/def/dom/HTMLAppletElement.java new file mode 100644 index 00000000..724931cc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLAppletElement.java @@ -0,0 +1,71 @@ +package def.dom; + +public class HTMLAppletElement extends HTMLElement { + /** + * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. + */ + public java.lang.String BaseHref; + public java.lang.String align; + /** + * Sets or retrieves a text alternative to the graphic. + */ + public java.lang.String alt; + /** + * Gets or sets the optional alternative HTML script to execute if the object fails to load. + */ + public java.lang.String altHtml; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + */ + public java.lang.String archive; + public java.lang.String border; + public java.lang.String code; + /** + * Sets or retrieves the URL of the component. + */ + public java.lang.String codeBase; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + */ + public java.lang.String codeType; + /** + * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned. + */ + public Document contentDocument; + /** + * Sets or retrieves the URL that references the data of the object. + */ + public java.lang.String data; + /** + * Sets or retrieves a character string that can be used to implement your own declare functionality for the object. + */ + public java.lang.Boolean declare; + public HTMLFormElement form; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.String height; + public double hspace; + /** + * Sets or retrieves the shape of the object. + */ + public java.lang.String name; + public java.lang.String object; + /** + * Sets or retrieves a message to be displayed while an object is loading. + */ + public java.lang.String standby; + /** + * Returns the content type of the object. + */ + public java.lang.String type; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + public java.lang.String useMap; + public double vspace; + public double width; + public static HTMLAppletElement prototype; + public HTMLAppletElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLAreaElement.java b/core-lib/es6/src/main/java/def/dom/HTMLAreaElement.java new file mode 100644 index 00000000..2b8b6533 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLAreaElement.java @@ -0,0 +1,63 @@ +package def.dom; +public class HTMLAreaElement extends HTMLElement { + /** + * Sets or retrieves a text alternative to the graphic. + */ + public java.lang.String alt; + /** + * Sets or retrieves the coordinates of the object. + */ + public java.lang.String coords; + /** + * Sets or retrieves the subsection of the href property that follows the number sign (#). + */ + public java.lang.String hash; + /** + * Sets or retrieves the hostname and port number of the location or URL. + */ + public java.lang.String host; + /** + * Sets or retrieves the host name part of the location or URL. + */ + public java.lang.String hostname; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + public java.lang.String href; + /** + * Sets or gets whether clicks in this region cause action. + */ + public java.lang.Boolean noHref; + /** + * Sets or retrieves the file name or path specified by the object. + */ + public java.lang.String pathname; + /** + * Sets or retrieves the port number associated with a URL. + */ + public java.lang.String port; + /** + * Sets or retrieves the protocol portion of a URL. + */ + public java.lang.String protocol; + public java.lang.String rel; + /** + * Sets or retrieves the substring of the href property that follows the question mark. + */ + public java.lang.String search; + /** + * Sets or retrieves the shape of the object. + */ + public java.lang.String shape; + /** + * Sets or retrieves the window or frame at which to target content. + */ + public java.lang.String target; + /** + * Returns a string representation of an object. + */ + native public java.lang.String toString(); + public static HTMLAreaElement prototype; + public HTMLAreaElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLAreasCollection.java b/core-lib/es6/src/main/java/def/dom/HTMLAreasCollection.java new file mode 100644 index 00000000..7f34c95c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLAreasCollection.java @@ -0,0 +1,23 @@ +package def.dom; +public class HTMLAreasCollection extends HTMLCollection { + /** + * Adds an element to the areas, controlRange, or options collection. + */ + native public void add(HTMLElement element, HTMLElement before); + native public void add(HTMLElement element, double before); + /** + * Removes an element from the collection. + */ + native public void remove(double index); + public static HTMLAreasCollection prototype; + public HTMLAreasCollection(){} + /** + * Adds an element to the areas, controlRange, or options collection. + */ + native public void add(HTMLElement element); + /** + * Removes an element from the collection. + */ + native public void remove(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLAudioElement.java b/core-lib/es6/src/main/java/def/dom/HTMLAudioElement.java new file mode 100644 index 00000000..510dd92c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLAudioElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class HTMLAudioElement extends HTMLMediaElement { + public static HTMLAudioElement prototype; + public HTMLAudioElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLBRElement.java b/core-lib/es6/src/main/java/def/dom/HTMLBRElement.java new file mode 100644 index 00000000..e79ea790 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLBRElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class HTMLBRElement extends HTMLElement { + /** + * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. + */ + public java.lang.String clear; + public static HTMLBRElement prototype; + public HTMLBRElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLBaseElement.java b/core-lib/es6/src/main/java/def/dom/HTMLBaseElement.java new file mode 100644 index 00000000..c7140abd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLBaseElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLBaseElement extends HTMLElement { + /** + * Gets or sets the baseline URL on which relative links are based. + */ + public java.lang.String href; + /** + * Sets or retrieves the window or frame at which to target content. + */ + public java.lang.String target; + public static HTMLBaseElement prototype; + public HTMLBaseElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLBaseFontElement.java b/core-lib/es6/src/main/java/def/dom/HTMLBaseFontElement.java new file mode 100644 index 00000000..ae93c4c1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLBaseFontElement.java @@ -0,0 +1,21 @@ +package def.dom; + +@jsweet.lang.Extends({DOML2DeprecatedColorProperty.class}) +public class HTMLBaseFontElement extends HTMLElement { + /** + * Sets or retrieves the current typeface family. + */ + public java.lang.String face; + /** + * Sets or retrieves the font size of the object. + */ + public double size; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLBaseFontElement prototype; + public HTMLBaseFontElement(){} + public java.lang.String color; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLBlockElement.java b/core-lib/es6/src/main/java/def/dom/HTMLBlockElement.java new file mode 100644 index 00000000..626a1264 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLBlockElement.java @@ -0,0 +1,15 @@ +package def.dom; +public class HTMLBlockElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + public java.lang.String cite; + public java.lang.String clear; + /** + * Sets or retrieves the width of the object. + */ + public double width; + public static HTMLBlockElement prototype; + public HTMLBlockElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLBodyElement.java b/core-lib/es6/src/main/java/def/dom/HTMLBodyElement.java new file mode 100644 index 00000000..88c71ad5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLBodyElement.java @@ -0,0 +1,151 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.MSContentZoom; +import def.js.StringTypes.afterprint; +import def.js.StringTypes.beforeprint; +import def.js.StringTypes.beforeunload; +import def.js.StringTypes.hashchange; +import def.js.StringTypes.message; +import def.js.StringTypes.offline; +import def.js.StringTypes.online; +import def.js.StringTypes.orientationchange; +import def.js.StringTypes.pagehide; +import def.js.StringTypes.pageshow; +import def.js.StringTypes.popstate; +import def.js.StringTypes.resize; +import def.js.StringTypes.storage; +import def.js.StringTypes.unload; + +public class HTMLBodyElement extends HTMLElement { + public java.lang.Object aLink; + public java.lang.String background; + public java.lang.Object bgColor; + public java.lang.String bgProperties; + public java.lang.Object link; + public java.lang.Boolean noWrap; + public java.util.function.Function onafterprint; + public java.util.function.Function onbeforeprint; + public java.util.function.Function onbeforeunload; + public java.util.function.Function onblur; + public java.util.function.Function onerror; + public java.util.function.Function onfocus; + public java.util.function.Function onhashchange; + public java.util.function.Function onload; + public java.util.function.Function onmessage; + public java.util.function.Function onoffline; + public java.util.function.Function ononline; + public java.util.function.Function onorientationchange; + public java.util.function.Function onpagehide; + public java.util.function.Function onpageshow; + public java.util.function.Function onpopstate; + public java.util.function.Function onresize; + public java.util.function.Function onstorage; + public java.util.function.Function onunload; + public java.lang.Object text; + public java.lang.Object vLink; + native public TextRange createTextRange(); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMSGestureEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMSManipulationEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMSPointerEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.afterprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerAriaRequestEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerCommandEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerErrorEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerFocusEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerKeyboardEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMouseEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMouseWheelEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerDragEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerPointerEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.popstate type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerProgressEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerUIEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerTouchEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerWheelEventAny(MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLBodyElement prototype; + public HTMLBodyElement(){} + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMSGestureEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMSManipulationEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMSPointerEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.afterprint type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerAriaRequestEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerCommandEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerErrorEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerFocusEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerKeyboardEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMouseEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerMouseWheelEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerDragEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerPointerEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.popstate type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerProgressEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerUIEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerTouchEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerEventAny(MSContentZoom type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerWheelEventAny(MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLButtonElement.java b/core-lib/es6/src/main/java/def/dom/HTMLButtonElement.java new file mode 100644 index 00000000..11a1cdbe --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLButtonElement.java @@ -0,0 +1,74 @@ +package def.dom; + +public class HTMLButtonElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + public java.lang.Boolean autofocus; + public java.lang.Boolean disabled; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + */ + public java.lang.String formAction; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + */ + public java.lang.String formEnctype; + /** + * Overrides the submit method attribute previously specified on a form element. + */ + public java.lang.String formMethod; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + */ + public java.lang.String formNoValidate; + /** + * Overrides the target attribute on a form element. + */ + public java.lang.String formTarget; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + public java.lang.Object status; + /** + * Gets the classification and default behavior of the button. + */ + public java.lang.String type; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + public java.lang.String validationMessage; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + public ValidityState validity; + /** + * Sets or retrieves the default or selected value of the control. + */ + public java.lang.String value; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + public java.lang.Boolean willValidate; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Creates a TextRange object for the element. + */ + native public TextRange createTextRange(); + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + native public void setCustomValidity(java.lang.String error); + public static HTMLButtonElement prototype; + public HTMLButtonElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLCanvasElement.java b/core-lib/es6/src/main/java/def/dom/HTMLCanvasElement.java new file mode 100644 index 00000000..d893ca9c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLCanvasElement.java @@ -0,0 +1,40 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes._2d; +import def.js.StringTypes.experimental_webgl; + +public class HTMLCanvasElement extends HTMLElement { + /** + * Gets or sets the height of a canvas element on a document. + */ + public double height; + /** + * Gets or sets the width of a canvas element on a document. + */ + public double width; + /** + * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. + * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); + */ + native public CanvasRenderingContext2D getContext(def.js.StringTypes._2d contextId); + native public WebGLRenderingContext getContext(def.js.StringTypes.experimental_webgl contextId); + native public jsweet.util.union.Union getContext(java.lang.String contextId, java.lang.Object... args); + /** + * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing. + */ + native public Blob msToBlob(); + /** + * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. + * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. + */ + native public java.lang.String toDataURL(java.lang.String type, java.lang.Object... args); + public static HTMLCanvasElement prototype; + public HTMLCanvasElement(){} + /** + * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. + * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. + */ + native public java.lang.String toDataURL(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLCollection.java b/core-lib/es6/src/main/java/def/dom/HTMLCollection.java new file mode 100644 index 00000000..f710791b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLCollection.java @@ -0,0 +1,34 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class HTMLCollection extends Iterable { + /** + * Sets or retrieves the number of objects in a collection. + */ + public double length; + /** + * Retrieves an object from various collections. + */ + native public Element item(java.lang.Object nameOrIndex, java.lang.Object optionalIndex); + /** + * Retrieves a select object or an object from an options collection. + */ + native public Element namedItem(java.lang.String name); + native public Element $get(double index); + public static HTMLCollection prototype; + public HTMLCollection(){} + /** + * Retrieves an object from various collections. + */ + native public Element item(java.lang.Object nameOrIndex); + /** + * Retrieves an object from various collections. + */ + native public Element item(); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDDElement.java b/core-lib/es6/src/main/java/def/dom/HTMLDDElement.java new file mode 100644 index 00000000..52b2ab69 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDDElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class HTMLDDElement extends HTMLElement { + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + public java.lang.Boolean noWrap; + public static HTMLDDElement prototype; + public HTMLDDElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDListElement.java b/core-lib/es6/src/main/java/def/dom/HTMLDListElement.java new file mode 100644 index 00000000..29c8417c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDListElement.java @@ -0,0 +1,7 @@ +package def.dom; +public class HTMLDListElement extends HTMLElement { + public java.lang.Boolean compact; + public static HTMLDListElement prototype; + public HTMLDListElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDTElement.java b/core-lib/es6/src/main/java/def/dom/HTMLDTElement.java new file mode 100644 index 00000000..24138a91 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDTElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class HTMLDTElement extends HTMLElement { + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + public java.lang.Boolean noWrap; + public static HTMLDTElement prototype; + public HTMLDTElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDataListElement.java b/core-lib/es6/src/main/java/def/dom/HTMLDataListElement.java new file mode 100644 index 00000000..34a747a4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDataListElement.java @@ -0,0 +1,7 @@ +package def.dom; +public class HTMLDataListElement extends HTMLElement { + public HTMLCollection options; + public static HTMLDataListElement prototype; + public HTMLDataListElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDirectoryElement.java b/core-lib/es6/src/main/java/def/dom/HTMLDirectoryElement.java new file mode 100644 index 00000000..e639e501 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDirectoryElement.java @@ -0,0 +1,7 @@ +package def.dom; +public class HTMLDirectoryElement extends HTMLElement { + public java.lang.Boolean compact; + public static HTMLDirectoryElement prototype; + public HTMLDirectoryElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDivElement.java b/core-lib/es6/src/main/java/def/dom/HTMLDivElement.java new file mode 100644 index 00000000..252b140b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDivElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLDivElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + public java.lang.Boolean noWrap; + public static HTMLDivElement prototype; + public HTMLDivElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLDocument.java b/core-lib/es6/src/main/java/def/dom/HTMLDocument.java new file mode 100644 index 00000000..f5008bd3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLDocument.java @@ -0,0 +1,7 @@ +package def.dom; + +public class HTMLDocument extends Document { + public static HTMLDocument prototype; + public HTMLDocument(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLElement.java b/core-lib/es6/src/main/java/def/dom/HTMLElement.java new file mode 100644 index 00000000..dededdb9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLElement.java @@ -0,0 +1,322 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +public class HTMLElement extends Element { + public java.lang.String accessKey; + public HTMLCollection children; + public java.lang.String className; + public java.lang.String contentEditable; + public DOMStringMap dataset; + public java.lang.String dir; + public java.lang.Boolean draggable; + public java.lang.Boolean hidden; + public java.lang.Boolean hideFocus; + public java.lang.String id; + public java.lang.String innerHTML; + public java.lang.String innerText; + public java.lang.Boolean isContentEditable; + public java.lang.String lang; + public double offsetHeight; + public double offsetLeft; + public Element offsetParent; + public double offsetTop; + public double offsetWidth; + public java.util.function.Function onabort; + public java.util.function.Function onactivate; + public java.util.function.Function onbeforeactivate; + public java.util.function.Function onbeforecopy; + public java.util.function.Function onbeforecut; + public java.util.function.Function onbeforedeactivate; + public java.util.function.Function onbeforepaste; + public java.util.function.Function onblur; + public java.util.function.Function oncanplay; + public java.util.function.Function oncanplaythrough; + public java.util.function.Function onchange; + public java.util.function.Function onclick; + public java.util.function.Function oncontextmenu; + public java.util.function.Function oncopy; + public java.util.function.Function oncuechange; + public java.util.function.Function oncut; + public java.util.function.Function ondblclick; + public java.util.function.Function ondeactivate; + public java.util.function.Function ondrag; + public java.util.function.Function ondragend; + public java.util.function.Function ondragenter; + public java.util.function.Function ondragleave; + public java.util.function.Function ondragover; + public java.util.function.Function ondragstart; + public java.util.function.Function ondrop; + public java.util.function.Function ondurationchange; + public java.util.function.Function onemptied; + public java.util.function.Function onended; + public java.util.function.Function onerror; + public java.util.function.Function onfocus; + public java.util.function.Function oninput; + public java.util.function.Function onkeydown; + public java.util.function.Function onkeypress; + public java.util.function.Function onkeyup; + public java.util.function.Function onload; + public java.util.function.Function onloadeddata; + public java.util.function.Function onloadedmetadata; + public java.util.function.Function onloadstart; + public java.util.function.Function onmousedown; + public java.util.function.Function onmouseenter; + public java.util.function.Function onmouseleave; + public java.util.function.Function onmousemove; + public java.util.function.Function onmouseout; + public java.util.function.Function onmouseover; + public java.util.function.Function onmouseup; + public java.util.function.Function onmousewheel; + public java.util.function.Function onmscontentzoom; + public java.util.function.Function onmsmanipulationstatechanged; + public java.util.function.Function onpaste; + public java.util.function.Function onpause; + public java.util.function.Function onplay; + public java.util.function.Function onplaying; + public java.util.function.Function onprogress; + public java.util.function.Function onratechange; + public java.util.function.Function onreset; + public java.util.function.Function onscroll; + public java.util.function.Function onseeked; + public java.util.function.Function onseeking; + public java.util.function.Function onselect; + public java.util.function.Function onselectstart; + public java.util.function.Function onstalled; + public java.util.function.Function onsubmit; + public java.util.function.Function onsuspend; + public java.util.function.Function ontimeupdate; + public java.util.function.Function onvolumechange; + public java.util.function.Function onwaiting; + public java.lang.String outerHTML; + public java.lang.String outerText; + public java.lang.Boolean spellcheck; + public CSSStyleDeclaration style; + public double tabIndex; + public java.lang.String title; + native public void blur(); + native public void click(); + native public java.lang.Boolean contains(HTMLElement child); + native public java.lang.Boolean dragDrop(); + native public void focus(); + native public NodeList getElementsByClassName(java.lang.String classNames); + native public Element insertAdjacentElement(java.lang.String position, Element insertedElement); + native public void insertAdjacentHTML(java.lang.String where, java.lang.String html); + native public void insertAdjacentText(java.lang.String where, java.lang.String text); + native public MSInputMethodContext msGetInputContext(); + native public void scrollIntoView(java.lang.Boolean top); + native public void setActive(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLElement prototype; + public HTMLElement(){} + native public void scrollIntoView(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLEmbedElement.java b/core-lib/es6/src/main/java/def/dom/HTMLEmbedElement.java new file mode 100644 index 00000000..940f19c3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLEmbedElement.java @@ -0,0 +1,59 @@ +package def.dom; + +@jsweet.lang.Extends({GetSVGDocument.class}) +public class HTMLEmbedElement extends HTMLElement { + /** + * Sets or retrieves the height of the object. + */ + public java.lang.String height; + public java.lang.Object hidden; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + public java.lang.Boolean msPlayToDisabled; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + public java.lang.String msPlayToPreferredSourceUri; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + public java.lang.Boolean msPlayToPrimary; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + public java.lang.Object msPlayToSource; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + /** + * Retrieves the palette used for the embedded document. + */ + public java.lang.String palette; + /** + * Retrieves the URL of the plug-in used to view an embedded document. + */ + public java.lang.String pluginspage; + public java.lang.String readyState; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + public java.lang.String src; + /** + * Sets or retrieves the height and width units of the embed object. + */ + public java.lang.String units; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.String width; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLEmbedElement prototype; + public HTMLEmbedElement(){} + native public Document getSVGDocument(); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLFieldSetElement.java b/core-lib/es6/src/main/java/def/dom/HTMLFieldSetElement.java new file mode 100644 index 00000000..a7a25606 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLFieldSetElement.java @@ -0,0 +1,37 @@ +package def.dom; + +public class HTMLFieldSetElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + public java.lang.Boolean disabled; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + public java.lang.String validationMessage; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + public ValidityState validity; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + public java.lang.Boolean willValidate; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + native public void setCustomValidity(java.lang.String error); + public static HTMLFieldSetElement prototype; + public HTMLFieldSetElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLFontElement.java b/core-lib/es6/src/main/java/def/dom/HTMLFontElement.java new file mode 100644 index 00000000..0dfdebd8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLFontElement.java @@ -0,0 +1,18 @@ +package def.dom; + +@jsweet.lang.Extends({DOML2DeprecatedColorProperty.class,DOML2DeprecatedSizeProperty.class}) +public class HTMLFontElement extends HTMLElement { + /** + * Sets or retrieves the current typeface family. + */ + public java.lang.String face; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLFontElement prototype; + public HTMLFontElement(){} + public java.lang.String color; + public double size; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLFormElement.java b/core-lib/es6/src/main/java/def/dom/HTMLFormElement.java new file mode 100644 index 00000000..8da5c8e6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLFormElement.java @@ -0,0 +1,85 @@ +package def.dom; +public class HTMLFormElement extends HTMLElement { + /** + * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. + */ + public java.lang.String acceptCharset; + /** + * Sets or retrieves the URL to which the form content is sent for processing. + */ + public java.lang.String action; + /** + * Specifies whether autocomplete is applied to an editable text field. + */ + public java.lang.String autocomplete; + /** + * Retrieves a collection, in source order, of all controls in a given form. + */ + public HTMLCollection elements; + /** + * Sets or retrieves the MIME encoding for the form. + */ + public java.lang.String encoding; + /** + * Sets or retrieves the encoding type for the form. + */ + public java.lang.String enctype; + /** + * Sets or retrieves the number of objects in a collection. + */ + public double length; + /** + * Sets or retrieves how to send the form data to the server. + */ + public java.lang.String method; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + /** + * Designates a form that is not validated when submitted. + */ + public java.lang.Boolean noValidate; + /** + * Sets or retrieves the window or frame at which to target content. + */ + public java.lang.String target; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Retrieves a form object or an object from an elements collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + native public java.lang.Object item(java.lang.Object name, java.lang.Object index); + /** + * Retrieves a form object or an object from an elements collection. + */ + native public java.lang.Object namedItem(java.lang.String name); + /** + * Fires when the user resets a form. + */ + native public void reset(); + /** + * Fires when a FORM is about to be submitted. + */ + native public void submit(); + native public java.lang.Object $get(java.lang.String name); + public static HTMLFormElement prototype; + public HTMLFormElement(){} + /** + * Retrieves a form object or an object from an elements collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + native public java.lang.Object item(java.lang.Object name); + /** + * Retrieves a form object or an object from an elements collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + native public java.lang.Object item(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLFrameElement.java b/core-lib/es6/src/main/java/def/dom/HTMLFrameElement.java new file mode 100644 index 00000000..bf2db7ea --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLFrameElement.java @@ -0,0 +1,288 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +@jsweet.lang.Extends({GetSVGDocument.class}) +public class HTMLFrameElement extends HTMLElement { + /** + * Specifies the properties of a border drawn around an object. + */ + public java.lang.String border; + /** + * Sets or retrieves the border color of the object. + */ + public java.lang.Object borderColor; + /** + * Retrieves the document object of the page or frame. + */ + public Document contentDocument; + /** + * Retrieves the object of the specified. + */ + public Window contentWindow; + /** + * Sets or retrieves whether to display a border for the frame. + */ + public java.lang.String frameBorder; + /** + * Sets or retrieves the amount of additional space between the frames. + */ + public java.lang.Object frameSpacing; + /** + * Sets or retrieves the height of the object. + */ + public jsweet.util.union.Union height; + /** + * Sets or retrieves a URI to a long description of the object. + */ + public java.lang.String longDesc; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + */ + public java.lang.String marginHeight; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + */ + public java.lang.String marginWidth; + /** + * Sets or retrieves the frame name. + */ + public java.lang.String name; + /** + * Sets or retrieves whether the user can resize the frame. + */ + public java.lang.Boolean noResize; + /** + * Raised when the object has been completely received from the server. + */ + public java.util.function.Function onload; + /** + * Sets or retrieves whether the frame can be scrolled. + */ + public java.lang.String scrolling; + /** + * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. + */ + public java.lang.Object security; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + public java.lang.String src; + /** + * Sets or retrieves the width of the object. + */ + public jsweet.util.union.Union width; + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLFrameElement prototype; + public HTMLFrameElement(){} + native public Document getSVGDocument(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLFrameSetElement.java b/core-lib/es6/src/main/java/def/dom/HTMLFrameSetElement.java new file mode 100644 index 00000000..f564459e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLFrameSetElement.java @@ -0,0 +1,287 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +public class HTMLFrameSetElement extends HTMLElement { + public java.lang.String border; + /** + * Sets or retrieves the border color of the object. + */ + public java.lang.Object borderColor; + /** + * Sets or retrieves the frame widths of the object. + */ + public java.lang.String cols; + /** + * Sets or retrieves whether to display a border for the frame. + */ + public java.lang.String frameBorder; + /** + * Sets or retrieves the amount of additional space between the frames. + */ + public java.lang.Object frameSpacing; + public java.lang.String name; + public java.util.function.Function onafterprint; + public java.util.function.Function onbeforeprint; + public java.util.function.Function onbeforeunload; + /** + * Fires when the object loses the input focus. + */ + public java.util.function.Function onblur; + public java.util.function.Function onerror; + /** + * Fires when the object receives focus. + */ + public java.util.function.Function onfocus; + public java.util.function.Function onhashchange; + public java.util.function.Function onload; + public java.util.function.Function onmessage; + public java.util.function.Function onoffline; + public java.util.function.Function ononline; + public java.util.function.Function onorientationchange; + public java.util.function.Function onpagehide; + public java.util.function.Function onpageshow; + public java.util.function.Function onresize; + public java.util.function.Function onstorage; + public java.util.function.Function onunload; + /** + * Sets or retrieves the frame heights of the object. + */ + public java.lang.String rows; + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLFrameSetElement prototype; + public HTMLFrameSetElement(){} + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLHRElement.java b/core-lib/es6/src/main/java/def/dom/HTMLHRElement.java new file mode 100644 index 00000000..6607907a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLHRElement.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({DOML2DeprecatedColorProperty.class,DOML2DeprecatedSizeProperty.class}) +public class HTMLHRElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + /** + * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. + */ + public java.lang.Boolean noShade; + /** + * Sets or retrieves the width of the object. + */ + public double width; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLHRElement prototype; + public HTMLHRElement(){} + public java.lang.String color; + public double size; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLHeadElement.java b/core-lib/es6/src/main/java/def/dom/HTMLHeadElement.java new file mode 100644 index 00000000..f75c9790 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLHeadElement.java @@ -0,0 +1,7 @@ +package def.dom; +public class HTMLHeadElement extends HTMLElement { + public java.lang.String profile; + public static HTMLHeadElement prototype; + public HTMLHeadElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLHeadingElement.java b/core-lib/es6/src/main/java/def/dom/HTMLHeadingElement.java new file mode 100644 index 00000000..8f4ba4ba --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLHeadingElement.java @@ -0,0 +1,11 @@ +package def.dom; +public class HTMLHeadingElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + public java.lang.String align; + public java.lang.String clear; + public static HTMLHeadingElement prototype; + public HTMLHeadingElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLHtmlElement.java b/core-lib/es6/src/main/java/def/dom/HTMLHtmlElement.java new file mode 100644 index 00000000..b5177bb4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLHtmlElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class HTMLHtmlElement extends HTMLElement { + /** + * Sets or retrieves the DTD version that governs the current document. + */ + public java.lang.String version; + public static HTMLHtmlElement prototype; + public HTMLHtmlElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLIFrameElement.java b/core-lib/es6/src/main/java/def/dom/HTMLIFrameElement.java new file mode 100644 index 00000000..e0467815 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLIFrameElement.java @@ -0,0 +1,298 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +@jsweet.lang.Extends({GetSVGDocument.class}) +public class HTMLIFrameElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + public java.lang.Boolean allowFullscreen; + /** + * Specifies the properties of a border drawn around an object. + */ + public java.lang.String border; + /** + * Retrieves the document object of the page or frame. + */ + public Document contentDocument; + /** + * Retrieves the object of the specified. + */ + public Window contentWindow; + /** + * Sets or retrieves whether to display a border for the frame. + */ + public java.lang.String frameBorder; + /** + * Sets or retrieves the amount of additional space between the frames. + */ + public java.lang.Object frameSpacing; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.String height; + /** + * Sets or retrieves the horizontal margin for the object. + */ + public double hspace; + /** + * Sets or retrieves a URI to a long description of the object. + */ + public java.lang.String longDesc; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + */ + public java.lang.String marginHeight; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + */ + public java.lang.String marginWidth; + /** + * Sets or retrieves the frame name. + */ + public java.lang.String name; + /** + * Sets or retrieves whether the user can resize the frame. + */ + public java.lang.Boolean noResize; + /** + * Raised when the object has been completely received from the server. + */ + public java.util.function.Function onload; + public DOMSettableTokenList sandbox; + /** + * Sets or retrieves whether the frame can be scrolled. + */ + public java.lang.String scrolling; + /** + * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. + */ + public java.lang.Object security; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + public java.lang.String src; + /** + * Sets or retrieves the vertical margin for the object. + */ + public double vspace; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.String width; + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLIFrameElement prototype; + public HTMLIFrameElement(){} + native public Document getSVGDocument(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLImageElement.java b/core-lib/es6/src/main/java/def/dom/HTMLImageElement.java new file mode 100644 index 00000000..af70c051 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLImageElement.java @@ -0,0 +1,86 @@ +package def.dom; +public class HTMLImageElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + /** + * Sets or retrieves a text alternative to the graphic. + */ + public java.lang.String alt; + /** + * Specifies the properties of a border drawn around an object. + */ + public java.lang.String border; + /** + * Retrieves whether the object is fully loaded. + */ + public java.lang.Boolean complete; + public java.lang.String crossOrigin; + public java.lang.String currentSrc; + /** + * Sets or retrieves the height of the object. + */ + public double height; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + public double hspace; + /** + * Sets or retrieves whether the image is a server-side image map. + */ + public java.lang.Boolean isMap; + /** + * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. + */ + public java.lang.String longDesc; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + public java.lang.Boolean msPlayToDisabled; + public java.lang.String msPlayToPreferredSourceUri; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + public java.lang.Boolean msPlayToPrimary; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + public java.lang.Object msPlayToSource; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + /** + * The original height of the image resource before sizing. + */ + public double naturalHeight; + /** + * The original width of the image resource before sizing. + */ + public double naturalWidth; + /** + * The address or URL of the a media resource that is to be considered. + */ + public java.lang.String src; + public java.lang.String srcset; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + public java.lang.String useMap; + /** + * Sets or retrieves the vertical margin for the object. + */ + public double vspace; + /** + * Sets or retrieves the width of the object. + */ + public double width; + public double x; + public double y; + native public java.lang.Object msGetAsCastingSource(); + public static HTMLImageElement prototype; + public HTMLImageElement(){} + native public static HTMLImageElement create(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLInputElement.java b/core-lib/es6/src/main/java/def/dom/HTMLInputElement.java new file mode 100644 index 00000000..3f05fa34 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLInputElement.java @@ -0,0 +1,222 @@ +package def.dom; + +import def.js.Date; + +public class HTMLInputElement extends HTMLElement { + /** + * Sets or retrieves a comma-separated list of content types. + */ + public java.lang.String accept; + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + /** + * Sets or retrieves a text alternative to the graphic. + */ + public java.lang.String alt; + /** + * Specifies whether autocomplete is applied to an editable text field. + */ + public java.lang.String autocomplete; + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + public java.lang.Boolean autofocus; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + public java.lang.String border; + /** + * Sets or retrieves the state of the check box or radio button. + */ + public java.lang.Boolean checked; + /** + * Retrieves whether the object is fully loaded. + */ + public java.lang.Boolean complete; + /** + * Sets or retrieves the state of the check box or radio button. + */ + public java.lang.Boolean defaultChecked; + /** + * Sets or retrieves the initial contents of the object. + */ + public java.lang.String defaultValue; + public java.lang.Boolean disabled; + /** + * Returns a FileList object on a file type input object. + */ + public FileList files; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + */ + public java.lang.String formAction; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + */ + public java.lang.String formEnctype; + /** + * Overrides the submit method attribute previously specified on a form element. + */ + public java.lang.String formMethod; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + */ + public java.lang.String formNoValidate; + /** + * Overrides the target attribute on a form element. + */ + public java.lang.String formTarget; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.String height; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + public double hspace; + public java.lang.Boolean indeterminate; + /** + * Specifies the ID of a pre-defined datalist of options for an input element. + */ + public HTMLElement list; + /** + * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. + */ + public java.lang.String max; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + */ + public double maxLength; + /** + * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. + */ + public java.lang.String min; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + */ + public java.lang.Boolean multiple; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + /** + * Gets or sets a string containing a regular expression that the user's input must match. + */ + public java.lang.String pattern; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + */ + public java.lang.String placeholder; + public java.lang.Boolean readOnly; + /** + * When present, marks an element that can't be submitted without a value. + */ + public java.lang.Boolean required; + /** + * Gets or sets the end position or offset of a text selection. + */ + public double selectionEnd; + /** + * Gets or sets the starting position or offset of a text selection. + */ + public double selectionStart; + public double size; + /** + * The address or URL of the a media resource that is to be considered. + */ + public java.lang.String src; + public java.lang.Boolean status; + /** + * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. + */ + public java.lang.String step; + /** + * Returns the content type of the object. + */ + public java.lang.String type; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + public java.lang.String useMap; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + public java.lang.String validationMessage; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + public ValidityState validity; + /** + * Returns the value of the data at the cursor's current position. + */ + public java.lang.String value; + public Date valueAsDate; + /** + * Returns the input field value as a number. + */ + public double valueAsNumber; + /** + * Sets or retrieves the vertical margin for the object. + */ + public double vspace; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.String width; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + public java.lang.Boolean willValidate; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Creates a TextRange object for the element. + */ + native public TextRange createTextRange(); + /** + * Makes the selection equal to the current object. + */ + native public void select(); + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + native public void setCustomValidity(java.lang.String error); + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + */ + native public void setSelectionRange(double start, double end); + /** + * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. + * @param n Value to decrement the value by. + */ + native public void stepDown(double n); + /** + * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. + * @param n Value to increment the value by. + */ + native public void stepUp(double n); + public static HTMLInputElement prototype; + public HTMLInputElement(){} + /** + * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. + * @param n Value to decrement the value by. + */ + native public void stepDown(); + /** + * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. + * @param n Value to increment the value by. + */ + native public void stepUp(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLIsIndexElement.java b/core-lib/es6/src/main/java/def/dom/HTMLIsIndexElement.java new file mode 100644 index 00000000..b241a8c4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLIsIndexElement.java @@ -0,0 +1,15 @@ +package def.dom; +public class HTMLIsIndexElement extends HTMLElement { + /** + * Sets or retrieves the URL to which the form content is sent for processing. + */ + public java.lang.String action; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + public java.lang.String prompt; + public static HTMLIsIndexElement prototype; + public HTMLIsIndexElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLLIElement.java b/core-lib/es6/src/main/java/def/dom/HTMLLIElement.java new file mode 100644 index 00000000..b3619d43 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLLIElement.java @@ -0,0 +1,11 @@ +package def.dom; +public class HTMLLIElement extends HTMLElement { + public java.lang.String type; + /** + * Sets or retrieves the value of a list item. + */ + public double value; + public static HTMLLIElement prototype; + public HTMLLIElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLLabelElement.java b/core-lib/es6/src/main/java/def/dom/HTMLLabelElement.java new file mode 100644 index 00000000..c07d7ba3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLLabelElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLLabelElement extends HTMLElement { + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Sets or retrieves the object to which the given label object is assigned. + */ + public java.lang.String htmlFor; + public static HTMLLabelElement prototype; + public HTMLLabelElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLLegendElement.java b/core-lib/es6/src/main/java/def/dom/HTMLLegendElement.java new file mode 100644 index 00000000..7efd3f71 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLLegendElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLLegendElement extends HTMLElement { + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public java.lang.String align; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + public static HTMLLegendElement prototype; + public HTMLLegendElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLLinkElement.java b/core-lib/es6/src/main/java/def/dom/HTMLLinkElement.java new file mode 100644 index 00000000..cb5d2cda --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLLinkElement.java @@ -0,0 +1,46 @@ +package def.dom; + +@jsweet.lang.Extends({LinkStyle.class}) +public class HTMLLinkElement extends HTMLElement { + /** + * Sets or retrieves the character set used to encode the object. + */ + public java.lang.String charset; + public java.lang.Boolean disabled; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + public java.lang.String href; + /** + * Sets or retrieves the language code of the object. + */ + public java.lang.String hreflang; + /** + * Sets or retrieves the media type. + */ + public java.lang.String media; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + public java.lang.String rel; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + public java.lang.String rev; + /** + * Sets or retrieves the window or frame at which to target content. + */ + public java.lang.String target; + /** + * Sets or retrieves the MIME type of the object. + */ + public java.lang.String type; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLLinkElement prototype; + public HTMLLinkElement(){} + public StyleSheet sheet; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLMapElement.java b/core-lib/es6/src/main/java/def/dom/HTMLMapElement.java new file mode 100644 index 00000000..50522010 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLMapElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLMapElement extends HTMLElement { + /** + * Retrieves a collection of the area objects defined for the given map object. + */ + public HTMLAreasCollection areas; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + public static HTMLMapElement prototype; + public HTMLMapElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLMarqueeElement.java b/core-lib/es6/src/main/java/def/dom/HTMLMarqueeElement.java new file mode 100644 index 00000000..ef8860a7 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLMarqueeElement.java @@ -0,0 +1,240 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +public class HTMLMarqueeElement extends HTMLElement { + public java.lang.String behavior; + public java.lang.Object bgColor; + public java.lang.String direction; + public java.lang.String height; + public double hspace; + public double loop; + public java.util.function.Function onbounce; + public java.util.function.Function onfinish; + public java.util.function.Function onstart; + public double scrollAmount; + public double scrollDelay; + public java.lang.Boolean trueSpeed; + public double vspace; + public java.lang.String width; + native public void start(); + native public void stop(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.bounce type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.finish type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.start type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLMarqueeElement prototype; + public HTMLMarqueeElement(){} + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.bounce type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.finish type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.start type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLMediaElement.java b/core-lib/es6/src/main/java/def/dom/HTMLMediaElement.java new file mode 100644 index 00000000..3026b4dd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLMediaElement.java @@ -0,0 +1,392 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.*; + +public class HTMLMediaElement extends HTMLElement { + /** + * Returns an AudioTrackList object with the audio tracks for a given video element. + */ + public AudioTrackList audioTracks; + /** + * Gets or sets a value that indicates whether to start playing the media automatically. + */ + public java.lang.Boolean autoplay; + /** + * Gets a collection of buffered time ranges. + */ + public TimeRanges buffered; + /** + * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). + */ + public java.lang.Boolean controls; + /** + * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. + */ + public java.lang.String currentSrc; + /** + * Gets or sets the current playback position, in seconds. + */ + public double currentTime; + public java.lang.Boolean defaultMuted; + /** + * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. + */ + public double defaultPlaybackRate; + /** + * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. + */ + public double duration; + /** + * Gets information about whether the playback has ended or not. + */ + public java.lang.Boolean ended; + /** + * Returns an object representing the current error state of the audio or video element. + */ + public MediaError error; + /** + * Gets or sets a flag to specify whether playback should restart after it completes. + */ + public java.lang.Boolean loop; + /** + * Specifies the purpose of the audio or video media, such as background audio or alerts. + */ + public java.lang.String msAudioCategory; + /** + * Specifies the output device id that the audio will be sent to. + */ + public java.lang.String msAudioDeviceType; + public MSGraphicsTrust msGraphicsTrustStatus; + /** + * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element. + */ + public MSMediaKeys msKeys; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + public java.lang.Boolean msPlayToDisabled; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + public java.lang.String msPlayToPreferredSourceUri; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + public java.lang.Boolean msPlayToPrimary; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + public java.lang.Object msPlayToSource; + /** + * Specifies whether or not to enable low-latency playback on the media element. + */ + public java.lang.Boolean msRealTime; + /** + * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. + */ + public java.lang.Boolean muted; + /** + * Gets the current network activity for the element. + */ + public double networkState; + public java.util.function.Function onmsneedkey; + /** + * Gets a flag that specifies whether playback is paused. + */ + public java.lang.Boolean paused; + /** + * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. + */ + public double playbackRate; + /** + * Gets TimeRanges for the current media resource that has been played. + */ + public TimeRanges played; + /** + * Gets or sets the current playback position, in seconds. + */ + public java.lang.String preload; + public java.lang.Object readyState; + /** + * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. + */ + public TimeRanges seekable; + /** + * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource. + */ + public java.lang.Boolean seeking; + /** + * The address or URL of the a media resource that is to be considered. + */ + public java.lang.String src; + public TextTrackList textTracks; + public VideoTrackList videoTracks; + /** + * Gets or sets the volume level for audio portions of the media element. + */ + public double volume; + native public TextTrack addTextTrack(java.lang.String kind, java.lang.String label, java.lang.String language); + /** + * Returns a string that specifies whether the client can play a given media resource type. + */ + native public java.lang.String canPlayType(java.lang.String type); + /** + * Fires immediately after the client loads the object. + */ + native public void load(); + /** + * Clears all effects from the media pipeline. + */ + native public void msClearEffects(); + native public java.lang.Object msGetAsCastingSource(); + /** + * Inserts the specified audio effect into media pipeline. + */ + native public void msInsertAudioEffect(java.lang.String activatableClassId, java.lang.Boolean effectRequired, java.lang.Object config); + native public void msSetMediaKeys(MSMediaKeys mediaKeys); + /** + * Specifies the media protection manager for a given media pipeline. + */ + native public void msSetMediaProtectionManager(java.lang.Object mediaProtectionManager); + /** + * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. + */ + native public void pause(); + /** + * Loads and starts playback of a media resource. + */ + native public void play(); + public double HAVE_CURRENT_DATA; + public double HAVE_ENOUGH_DATA; + public double HAVE_FUTURE_DATA; + public double HAVE_METADATA; + public double HAVE_NOTHING; + public double NETWORK_EMPTY; + public double NETWORK_IDLE; + public double NETWORK_LOADING; + public double NETWORK_NO_SOURCE; + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.msneedkey type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLMediaElement prototype; + public HTMLMediaElement(){} + native public TextTrack addTextTrack(java.lang.String kind, java.lang.String label); + native public TextTrack addTextTrack(java.lang.String kind); + /** + * Inserts the specified audio effect into media pipeline. + */ + native public void msInsertAudioEffect(java.lang.String activatableClassId, java.lang.Boolean effectRequired); + /** + * Specifies the media protection manager for a given media pipeline. + */ + native public void msSetMediaProtectionManager(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.msneedkey type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLMenuElement.java b/core-lib/es6/src/main/java/def/dom/HTMLMenuElement.java new file mode 100644 index 00000000..4f689d9e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLMenuElement.java @@ -0,0 +1,8 @@ +package def.dom; +public class HTMLMenuElement extends HTMLElement { + public java.lang.Boolean compact; + public java.lang.String type; + public static HTMLMenuElement prototype; + public HTMLMenuElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLMetaElement.java b/core-lib/es6/src/main/java/def/dom/HTMLMetaElement.java new file mode 100644 index 00000000..46e16be8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLMetaElement.java @@ -0,0 +1,30 @@ +package def.dom; +public class HTMLMetaElement extends HTMLElement { + /** + * Sets or retrieves the character set used to encode the object. + */ + public java.lang.String charset; + /** + * Gets or sets meta-information to associate with httpEquiv or name. + */ + public java.lang.String content; + /** + * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. + */ + public java.lang.String httpEquiv; + /** + * Sets or retrieves the value specified in the content attribute of the meta object. + */ + public java.lang.String name; + /** + * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. + */ + public java.lang.String scheme; + /** + * Sets or retrieves the URL property that will be loaded after the specified time has elapsed. + */ + public java.lang.String url; + public static HTMLMetaElement prototype; + public HTMLMetaElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLModElement.java b/core-lib/es6/src/main/java/def/dom/HTMLModElement.java new file mode 100644 index 00000000..4010be7e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLModElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLModElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + public java.lang.String cite; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + public java.lang.String dateTime; + public static HTMLModElement prototype; + public HTMLModElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLNextIdElement.java b/core-lib/es6/src/main/java/def/dom/HTMLNextIdElement.java new file mode 100644 index 00000000..640345b0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLNextIdElement.java @@ -0,0 +1,7 @@ +package def.dom; +public class HTMLNextIdElement extends HTMLElement { + public java.lang.String n; + public static HTMLNextIdElement prototype; + public HTMLNextIdElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLOListElement.java b/core-lib/es6/src/main/java/def/dom/HTMLOListElement.java new file mode 100644 index 00000000..8d411b67 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLOListElement.java @@ -0,0 +1,12 @@ +package def.dom; +public class HTMLOListElement extends HTMLElement { + public java.lang.Boolean compact; + /** + * The starting number. + */ + public double start; + public java.lang.String type; + public static HTMLOListElement prototype; + public HTMLOListElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLObjectElement.java b/core-lib/es6/src/main/java/def/dom/HTMLObjectElement.java new file mode 100644 index 00000000..8a87ac4b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLObjectElement.java @@ -0,0 +1,124 @@ +package def.dom; + +@jsweet.lang.Extends({GetSVGDocument.class}) +public class HTMLObjectElement extends HTMLElement { + /** + * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. + */ + public java.lang.String BaseHref; + public java.lang.String align; + /** + * Sets or retrieves a text alternative to the graphic. + */ + public java.lang.String alt; + /** + * Gets or sets the optional alternative HTML script to execute if the object fails to load. + */ + public java.lang.String altHtml; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + */ + public java.lang.String archive; + public java.lang.String border; + /** + * Sets or retrieves the URL of the file containing the compiled Java class. + */ + public java.lang.String code; + /** + * Sets or retrieves the URL of the component. + */ + public java.lang.String codeBase; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + */ + public java.lang.String codeType; + /** + * Retrieves the document object of the page or frame. + */ + public Document contentDocument; + /** + * Sets or retrieves the URL that references the data of the object. + */ + public java.lang.String data; + public java.lang.Boolean declare; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.String height; + public double hspace; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + public java.lang.Boolean msPlayToDisabled; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + public java.lang.String msPlayToPreferredSourceUri; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + public java.lang.Boolean msPlayToPrimary; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + public java.lang.Object msPlayToSource; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + /** + * Retrieves the contained object. + */ + public java.lang.Object object; + public double readyState; + /** + * Sets or retrieves a message to be displayed while an object is loading. + */ + public java.lang.String standby; + /** + * Sets or retrieves the MIME type of the object. + */ + public java.lang.String type; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + public java.lang.String useMap; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + public java.lang.String validationMessage; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + public ValidityState validity; + public double vspace; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.String width; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + public java.lang.Boolean willValidate; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + native public void setCustomValidity(java.lang.String error); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLObjectElement prototype; + public HTMLObjectElement(){} + native public Document getSVGDocument(); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLOptGroupElement.java b/core-lib/es6/src/main/java/def/dom/HTMLOptGroupElement.java new file mode 100644 index 00000000..6ed4991a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLOptGroupElement.java @@ -0,0 +1,35 @@ +package def.dom; +public class HTMLOptGroupElement extends HTMLElement { + /** + * Sets or retrieves the status of an option. + */ + public java.lang.Boolean defaultSelected; + public java.lang.Boolean disabled; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Sets or retrieves the ordinal position of an option in a list box. + */ + public double index; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + */ + public java.lang.String label; + /** + * Sets or retrieves whether the option in the list box is the default item. + */ + public java.lang.Boolean selected; + /** + * Sets or retrieves the text string specified by the option tag. + */ + public java.lang.String text; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + public java.lang.String value; + public static HTMLOptGroupElement prototype; + public HTMLOptGroupElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLOptionElement.java b/core-lib/es6/src/main/java/def/dom/HTMLOptionElement.java new file mode 100644 index 00000000..8d235286 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLOptionElement.java @@ -0,0 +1,36 @@ +package def.dom; +public class HTMLOptionElement extends HTMLElement { + /** + * Sets or retrieves the status of an option. + */ + public java.lang.Boolean defaultSelected; + public java.lang.Boolean disabled; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Sets or retrieves the ordinal position of an option in a list box. + */ + public double index; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + */ + public java.lang.String label; + /** + * Sets or retrieves whether the option in the list box is the default item. + */ + public java.lang.Boolean selected; + /** + * Sets or retrieves the text string specified by the option tag. + */ + public java.lang.String text; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + public java.lang.String value; + public static HTMLOptionElement prototype; + public HTMLOptionElement(){} + native public static HTMLOptionElement create(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLParagraphElement.java b/core-lib/es6/src/main/java/def/dom/HTMLParagraphElement.java new file mode 100644 index 00000000..d7861abd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLParagraphElement.java @@ -0,0 +1,11 @@ +package def.dom; +public class HTMLParagraphElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + public java.lang.String clear; + public static HTMLParagraphElement prototype; + public HTMLParagraphElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLParamElement.java b/core-lib/es6/src/main/java/def/dom/HTMLParamElement.java new file mode 100644 index 00000000..119c4dc6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLParamElement.java @@ -0,0 +1,22 @@ +package def.dom; +public class HTMLParamElement extends HTMLElement { + /** + * Sets or retrieves the name of an input parameter for an element. + */ + public java.lang.String name; + /** + * Sets or retrieves the content type of the resource designated by the value attribute. + */ + public java.lang.String type; + /** + * Sets or retrieves the value of an input parameter for an element. + */ + public java.lang.String value; + /** + * Sets or retrieves the data type of the value attribute. + */ + public java.lang.String valueType; + public static HTMLParamElement prototype; + public HTMLParamElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLPhraseElement.java b/core-lib/es6/src/main/java/def/dom/HTMLPhraseElement.java new file mode 100644 index 00000000..44722496 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLPhraseElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLPhraseElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + public java.lang.String cite; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + public java.lang.String dateTime; + public static HTMLPhraseElement prototype; + public HTMLPhraseElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLPreElement.java b/core-lib/es6/src/main/java/def/dom/HTMLPreElement.java new file mode 100644 index 00000000..0de12a59 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLPreElement.java @@ -0,0 +1,15 @@ +package def.dom; +public class HTMLPreElement extends HTMLElement { + /** + * Indicates a citation by rendering text in italic type. + */ + public java.lang.String cite; + public java.lang.String clear; + /** + * Sets or gets a value that you can use to implement your own width functionality for the object. + */ + public double width; + public static HTMLPreElement prototype; + public HTMLPreElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLProgressElement.java b/core-lib/es6/src/main/java/def/dom/HTMLProgressElement.java new file mode 100644 index 00000000..16b64c37 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLProgressElement.java @@ -0,0 +1,22 @@ +package def.dom; +public class HTMLProgressElement extends HTMLElement { + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Defines the maximum, or "done" value for a progress element. + */ + public double max; + /** + * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). + */ + public double position; + /** + * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. + */ + public double value; + public static HTMLProgressElement prototype; + public HTMLProgressElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLQuoteElement.java b/core-lib/es6/src/main/java/def/dom/HTMLQuoteElement.java new file mode 100644 index 00000000..cd618d4c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLQuoteElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLQuoteElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + public java.lang.String cite; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + public java.lang.String dateTime; + public static HTMLQuoteElement prototype; + public HTMLQuoteElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLScriptElement.java b/core-lib/es6/src/main/java/def/dom/HTMLScriptElement.java new file mode 100644 index 00000000..ce4fb384 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLScriptElement.java @@ -0,0 +1,35 @@ +package def.dom; +public class HTMLScriptElement extends HTMLElement { + public java.lang.Boolean async; + /** + * Sets or retrieves the character set used to encode the object. + */ + public java.lang.String charset; + /** + * Sets or retrieves the status of the script. + */ + public java.lang.Boolean defer; + /** + * Sets or retrieves the event for which the script is written. + */ + public java.lang.String event; + /** + * Sets or retrieves the object that is bound to the event script. + */ + public java.lang.String htmlFor; + /** + * Retrieves the URL to an external file that contains the source code or data. + */ + public java.lang.String src; + /** + * Retrieves or sets the text of the object as a string. + */ + public java.lang.String text; + /** + * Sets or retrieves the MIME type for the associated scripting engine. + */ + public java.lang.String type; + public static HTMLScriptElement prototype; + public HTMLScriptElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLSelectElement.java b/core-lib/es6/src/main/java/def/dom/HTMLSelectElement.java new file mode 100644 index 00000000..dfeca6b2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLSelectElement.java @@ -0,0 +1,117 @@ +package def.dom; + +public class HTMLSelectElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + public java.lang.Boolean autofocus; + public java.lang.Boolean disabled; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Sets or retrieves the number of objects in a collection. + */ + public double length; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + */ + public java.lang.Boolean multiple; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + public HTMLSelectElement options; + /** + * When present, marks an element that can't be submitted without a value. + */ + public java.lang.Boolean required; + /** + * Sets or retrieves the index of the selected option in a select object. + */ + public double selectedIndex; + /** + * Sets or retrieves the number of rows in the list box. + */ + public double size; + /** + * Retrieves the type of select control based on the value of the MULTIPLE attribute. + */ + public java.lang.String type; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + public java.lang.String validationMessage; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + public ValidityState validity; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + public java.lang.String value; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + public java.lang.Boolean willValidate; + /** + * Adds an element to the areas, controlRange, or options collection. + * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. + * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. + */ + native public void add(HTMLElement element, HTMLElement before); + native public void add(HTMLElement element, double before); + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + native public java.lang.Object item(java.lang.Object name, java.lang.Object index); + /** + * Retrieves a select object or an object from an options collection. + * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. + */ + native public java.lang.Object namedItem(java.lang.String name); + /** + * Removes an element from the collection. + * @param index Number that specifies the zero-based index of the element to remove from the collection. + */ + native public void remove(double index); + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + native public void setCustomValidity(java.lang.String error); + native public java.lang.Object $get(java.lang.String name); + public static HTMLSelectElement prototype; + public HTMLSelectElement(){} + /** + * Adds an element to the areas, controlRange, or options collection. + * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. + * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. + */ + native public void add(HTMLElement element); + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + native public java.lang.Object item(java.lang.Object name); + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + native public java.lang.Object item(); + /** + * Removes an element from the collection. + * @param index Number that specifies the zero-based index of the element to remove from the collection. + */ + native public void remove(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLSourceElement.java b/core-lib/es6/src/main/java/def/dom/HTMLSourceElement.java new file mode 100644 index 00000000..4ff3d200 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLSourceElement.java @@ -0,0 +1,19 @@ +package def.dom; +public class HTMLSourceElement extends HTMLElement { + /** + * Gets or sets the intended media type of the media source. + */ + public java.lang.String media; + public java.lang.String msKeySystem; + /** + * The address or URL of the a media resource that is to be considered. + */ + public java.lang.String src; + /** + * Gets or sets the MIME type of a media resource. + */ + public java.lang.String type; + public static HTMLSourceElement prototype; + public HTMLSourceElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLSpanElement.java b/core-lib/es6/src/main/java/def/dom/HTMLSpanElement.java new file mode 100644 index 00000000..c7d37ece --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLSpanElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class HTMLSpanElement extends HTMLElement { + public static HTMLSpanElement prototype; + public HTMLSpanElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLStyleElement.java b/core-lib/es6/src/main/java/def/dom/HTMLStyleElement.java new file mode 100644 index 00000000..6463e3a0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLStyleElement.java @@ -0,0 +1,21 @@ +package def.dom; + +@jsweet.lang.Extends({LinkStyle.class}) +public class HTMLStyleElement extends HTMLElement { + /** + * Sets or retrieves the media type. + */ + public java.lang.String media; + /** + * Retrieves the CSS language in which the style sheet is written. + */ + public java.lang.String type; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLStyleElement prototype; + public HTMLStyleElement(){} + public StyleSheet sheet; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableAlignment.java b/core-lib/es6/src/main/java/def/dom/HTMLTableAlignment.java new file mode 100644 index 00000000..7b39aad0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableAlignment.java @@ -0,0 +1,20 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class HTMLTableAlignment extends def.js.Object { + /** + * Sets or retrieves a value that you can use to implement your own ch functionality for the object. + */ + public java.lang.String ch; + /** + * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. + */ + public java.lang.String chOff; + /** + * Sets or retrieves how text and other content are vertically aligned within the object that contains them. + */ + public java.lang.String vAlign; +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableCaptionElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableCaptionElement.java new file mode 100644 index 00000000..af136bd3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableCaptionElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class HTMLTableCaptionElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the caption or legend. + */ + public java.lang.String align; + /** + * Sets or retrieves whether the caption appears at the top or bottom of the table. + */ + public java.lang.String vAlign; + public static HTMLTableCaptionElement prototype; + public HTMLTableCaptionElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableCellElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableCellElement.java new file mode 100644 index 00000000..6e8d057e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableCellElement.java @@ -0,0 +1,69 @@ +package def.dom; + +@jsweet.lang.Extends({HTMLTableAlignment.class}) +public class HTMLTableCellElement extends HTMLElement { + /** + * Sets or retrieves abbreviated text for the object. + */ + public java.lang.String abbr; + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + /** + * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. + */ + public java.lang.String axis; + public java.lang.Object bgColor; + /** + * Retrieves the position of the object in the cells collection of a row. + */ + public double cellIndex; + /** + * Sets or retrieves the number columns in the table that the object should span. + */ + public double colSpan; + /** + * Sets or retrieves a list of header cells that provide information for the object. + */ + public java.lang.String headers; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.Object height; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + public java.lang.Boolean noWrap; + /** + * Sets or retrieves how many rows in a table the cell should span. + */ + public double rowSpan; + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + */ + public java.lang.String scope; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.String width; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLTableCellElement prototype; + public HTMLTableCellElement(){} + /** + * Sets or retrieves a value that you can use to implement your own ch functionality for the object. + */ + public java.lang.String ch; + /** + * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. + */ + public java.lang.String chOff; + /** + * Sets or retrieves how text and other content are vertically aligned within the object that contains them. + */ + public java.lang.String vAlign; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableColElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableColElement.java new file mode 100644 index 00000000..12eb2a4f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableColElement.java @@ -0,0 +1,36 @@ +package def.dom; + +@jsweet.lang.Extends({HTMLTableAlignment.class}) +public class HTMLTableColElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the object relative to the display or table. + */ + public java.lang.String align; + /** + * Sets or retrieves the number of columns in the group. + */ + public double span; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.Object width; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLTableColElement prototype; + public HTMLTableColElement(){} + /** + * Sets or retrieves a value that you can use to implement your own ch functionality for the object. + */ + public java.lang.String ch; + /** + * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. + */ + public java.lang.String chOff; + /** + * Sets or retrieves how text and other content are vertically aligned within the object that contains them. + */ + public java.lang.String vAlign; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableDataCellElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableDataCellElement.java new file mode 100644 index 00000000..40274807 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableDataCellElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class HTMLTableDataCellElement extends HTMLTableCellElement { + public static HTMLTableDataCellElement prototype; + public HTMLTableDataCellElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableElement.java new file mode 100644 index 00000000..aa668a3a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableElement.java @@ -0,0 +1,119 @@ +package def.dom; +public class HTMLTableElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + public java.lang.String align; + public java.lang.Object bgColor; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + public java.lang.String border; + /** + * Sets or retrieves the border color of the object. + */ + public java.lang.Object borderColor; + /** + * Retrieves the caption object of a table. + */ + public HTMLTableCaptionElement caption; + /** + * Sets or retrieves the amount of space between the border of the cell and the content of the cell. + */ + public java.lang.String cellPadding; + /** + * Sets or retrieves the amount of space between cells in a table. + */ + public java.lang.String cellSpacing; + /** + * Sets or retrieves the number of columns in the table. + */ + public double cols; + /** + * Sets or retrieves the way the border frame around the table is displayed. + */ + public java.lang.String frame; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.Object height; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + public HTMLCollection rows; + /** + * Sets or retrieves which dividing lines (inner borders) are displayed. + */ + public java.lang.String rules; + /** + * Sets or retrieves a description and/or structure of the object. + */ + public java.lang.String summary; + /** + * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. + */ + public HTMLCollection tBodies; + /** + * Retrieves the tFoot object of the table. + */ + public HTMLTableSectionElement tFoot; + /** + * Retrieves the tHead object of the table. + */ + public HTMLTableSectionElement tHead; + /** + * Sets or retrieves the width of the object. + */ + public java.lang.String width; + /** + * Creates an empty caption element in the table. + */ + native public HTMLElement createCaption(); + /** + * Creates an empty tBody element in the table. + */ + native public HTMLElement createTBody(); + /** + * Creates an empty tFoot element in the table. + */ + native public HTMLElement createTFoot(); + /** + * Returns the tHead element object if successful, or null otherwise. + */ + native public HTMLElement createTHead(); + /** + * Deletes the caption element and its contents from the table. + */ + native public void deleteCaption(); + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + native public void deleteRow(double index); + /** + * Deletes the tFoot element and its contents from the table. + */ + native public void deleteTFoot(); + /** + * Deletes the tHead element and its contents from the table. + */ + native public void deleteTHead(); + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + native public HTMLElement insertRow(double index); + public static HTMLTableElement prototype; + public HTMLTableElement(){} + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + native public void deleteRow(); + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + native public HTMLElement insertRow(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableHeaderCellElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableHeaderCellElement.java new file mode 100644 index 00000000..b6bcc980 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableHeaderCellElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class HTMLTableHeaderCellElement extends HTMLTableCellElement { + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + */ + public java.lang.String scope; + public static HTMLTableHeaderCellElement prototype; + public HTMLTableHeaderCellElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableRowElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableRowElement.java new file mode 100644 index 00000000..dccc26b7 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableRowElement.java @@ -0,0 +1,65 @@ +package def.dom; + +@jsweet.lang.Extends({HTMLTableAlignment.class}) +public class HTMLTableRowElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + public java.lang.String align; + public java.lang.Object bgColor; + /** + * Retrieves a collection of all cells in the table row. + */ + public HTMLCollection cells; + /** + * Sets or retrieves the height of the object. + */ + public java.lang.Object height; + /** + * Retrieves the position of the object in the rows collection for the table. + */ + public double rowIndex; + /** + * Retrieves the position of the object in the collection. + */ + public double sectionRowIndex; + /** + * Removes the specified cell from the table row, as well as from the cells collection. + * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. + */ + native public void deleteCell(double index); + /** + * Creates a new cell in the table row, and adds the cell to the cells collection. + * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. + */ + native public HTMLElement insertCell(double index); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLTableRowElement prototype; + public HTMLTableRowElement(){} + /** + * Sets or retrieves a value that you can use to implement your own ch functionality for the object. + */ + public java.lang.String ch; + /** + * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. + */ + public java.lang.String chOff; + /** + * Sets or retrieves how text and other content are vertically aligned within the object that contains them. + */ + public java.lang.String vAlign; + /** + * Removes the specified cell from the table row, as well as from the cells collection. + * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. + */ + native public void deleteCell(); + /** + * Creates a new cell in the table row, and adds the cell to the cells collection. + * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. + */ + native public HTMLElement insertCell(); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTableSectionElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTableSectionElement.java new file mode 100644 index 00000000..4cd4feaa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTableSectionElement.java @@ -0,0 +1,52 @@ +package def.dom; + +@jsweet.lang.Extends({HTMLTableAlignment.class}) +public class HTMLTableSectionElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + public java.lang.String align; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + public HTMLCollection rows; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + native public void deleteRow(double index); + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + native public HTMLElement insertRow(double index); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLTableSectionElement prototype; + public HTMLTableSectionElement(){} + /** + * Sets or retrieves a value that you can use to implement your own ch functionality for the object. + */ + public java.lang.String ch; + /** + * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. + */ + public java.lang.String chOff; + /** + * Sets or retrieves how text and other content are vertically aligned within the object that contains them. + */ + public java.lang.String vAlign; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + native public void deleteRow(); + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + native public HTMLElement insertRow(); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTextAreaElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTextAreaElement.java new file mode 100644 index 00000000..ea002aad --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTextAreaElement.java @@ -0,0 +1,107 @@ +package def.dom; + +public class HTMLTextAreaElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + public java.lang.Boolean autofocus; + /** + * Sets or retrieves the width of the object. + */ + public double cols; + /** + * Sets or retrieves the initial contents of the object. + */ + public java.lang.String defaultValue; + public java.lang.Boolean disabled; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + public HTMLFormElement form; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + */ + public double maxLength; + /** + * Sets or retrieves the name of the object. + */ + public java.lang.String name; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + */ + public java.lang.String placeholder; + /** + * Sets or retrieves the value indicated whether the content of the object is read-only. + */ + public java.lang.Boolean readOnly; + /** + * When present, marks an element that can't be submitted without a value. + */ + public java.lang.Boolean required; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + public double rows; + /** + * Gets or sets the end position or offset of a text selection. + */ + public double selectionEnd; + /** + * Gets or sets the starting position or offset of a text selection. + */ + public double selectionStart; + /** + * Sets or retrieves the value indicating whether the control is selected. + */ + public java.lang.Object status; + /** + * Retrieves the type of control. + */ + public java.lang.String type; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + public java.lang.String validationMessage; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + public ValidityState validity; + /** + * Retrieves or sets the text in the entry field of the textArea element. + */ + public java.lang.String value; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + public java.lang.Boolean willValidate; + /** + * Sets or retrieves how to handle wordwrapping in the object. + */ + public java.lang.String wrap; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + native public java.lang.Boolean checkValidity(); + /** + * Creates a TextRange object for the element. + */ + native public TextRange createTextRange(); + /** + * Highlights the input area of a form element. + */ + native public void select(); + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + native public void setCustomValidity(java.lang.String error); + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + */ + native public void setSelectionRange(double start, double end); + public static HTMLTextAreaElement prototype; + public HTMLTextAreaElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTitleElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTitleElement.java new file mode 100644 index 00000000..6b6e2824 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTitleElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class HTMLTitleElement extends HTMLElement { + /** + * Retrieves or sets the text of the object as a string. + */ + public java.lang.String text; + public static HTMLTitleElement prototype; + public HTMLTitleElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLTrackElement.java b/core-lib/es6/src/main/java/def/dom/HTMLTrackElement.java new file mode 100644 index 00000000..c58c71d6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLTrackElement.java @@ -0,0 +1,19 @@ +package def.dom; + +public class HTMLTrackElement extends HTMLElement { + @jsweet.lang.Name("default") + public java.lang.Boolean Default; + public java.lang.String kind; + public java.lang.String label; + public double readyState; + public java.lang.String src; + public java.lang.String srclang; + public TextTrack track; + public double ERROR; + public double LOADED; + public double LOADING; + public double NONE; + public static HTMLTrackElement prototype; + public HTMLTrackElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLUListElement.java b/core-lib/es6/src/main/java/def/dom/HTMLUListElement.java new file mode 100644 index 00000000..0d797f15 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLUListElement.java @@ -0,0 +1,8 @@ +package def.dom; +public class HTMLUListElement extends HTMLElement { + public java.lang.Boolean compact; + public java.lang.String type; + public static HTMLUListElement prototype; + public HTMLUListElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLUnknownElement.java b/core-lib/es6/src/main/java/def/dom/HTMLUnknownElement.java new file mode 100644 index 00000000..020862a9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLUnknownElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class HTMLUnknownElement extends HTMLElement { + public static HTMLUnknownElement prototype; + public HTMLUnknownElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HTMLVideoElement.java b/core-lib/es6/src/main/java/def/dom/HTMLVideoElement.java new file mode 100644 index 00000000..f9d84c04 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HTMLVideoElement.java @@ -0,0 +1,267 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.VideoPlaybackQuality; +import def.js.StringTypes.*; + +public class HTMLVideoElement extends HTMLMediaElement { + /** + * Gets or sets the height of the video element. + */ + public double height; + public java.lang.Boolean msHorizontalMirror; + public java.lang.Boolean msIsLayoutOptimalForPlayback; + public java.lang.Boolean msIsStereo3D; + public java.lang.String msStereo3DPackingMode; + public java.lang.String msStereo3DRenderMode; + public java.lang.Boolean msZoom; + public java.util.function.Function onMSVideoFormatChanged; + public java.util.function.Function onMSVideoFrameStepCompleted; + public java.util.function.Function onMSVideoOptimalLayoutChanged; + /** + * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. + */ + public java.lang.String poster; + /** + * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. + */ + public double videoHeight; + /** + * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. + */ + public double videoWidth; + public java.lang.Boolean webkitDisplayingFullscreen; + public java.lang.Boolean webkitSupportsFullscreen; + /** + * Gets or sets the width of the video element. + */ + public double width; + native public VideoPlaybackQuality getVideoPlaybackQuality(); + native public void msFrameStep(java.lang.Boolean forward); + native public void msInsertVideoEffect(java.lang.String activatableClassId, java.lang.Boolean effectRequired, java.lang.Object config); + native public void msSetVideoRectangle(double left, double top, double right, double bottom); + native public void webkitEnterFullScreen(); + native public void webkitEnterFullscreen(); + native public void webkitExitFullScreen(); + native public void webkitExitFullscreen(); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSVideoFormatChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSVideoFrameStepCompleted type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSVideoOptimalLayoutChanged type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.msneedkey type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static HTMLVideoElement prototype; + public HTMLVideoElement(){} + native public void msInsertVideoEffect(java.lang.String activatableClassId, java.lang.Boolean effectRequired); + native public void addEventListener(def.js.StringTypes.MSContentZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSManipulationStateChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSVideoFormatChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSVideoFrameStepCompleted type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSVideoOptimalLayoutChanged type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.activate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecopy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforecut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforedeactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforepaste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.copy type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.cut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deactivate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.msneedkey type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.paste type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.selectstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/HashChangeEvent.java b/core-lib/es6/src/main/java/def/dom/HashChangeEvent.java new file mode 100644 index 00000000..c4347ee5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HashChangeEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class HashChangeEvent extends Event { + public java.lang.String newURL; + public java.lang.String oldURL; + public static HashChangeEvent prototype; + public HashChangeEvent(java.lang.String type, HashChangeEventInit eventInitDict){} + public HashChangeEvent(java.lang.String type){} + protected HashChangeEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/HashChangeEventInit.java b/core-lib/es6/src/main/java/def/dom/HashChangeEventInit.java new file mode 100644 index 00000000..82b72e62 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/HashChangeEventInit.java @@ -0,0 +1,10 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class HashChangeEventInit extends EventInit { + @jsweet.lang.Optional + public java.lang.String newURL; + @jsweet.lang.Optional + public java.lang.String oldURL; +} + diff --git a/core-lib/es6/src/main/java/def/dom/History.java b/core-lib/es6/src/main/java/def/dom/History.java new file mode 100644 index 00000000..c1d86932 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/History.java @@ -0,0 +1,23 @@ +package def.dom; + +import def.js.Object; + +public class History extends def.js.Object { + public double length; + public java.lang.Object state; + native public void back(java.lang.Object distance); + native public void forward(java.lang.Object distance); + native public void go(java.lang.Object delta); + native public void pushState(java.lang.Object statedata, java.lang.String title, java.lang.String url); + native public void replaceState(java.lang.Object statedata, java.lang.String title, java.lang.String url); + public static History prototype; + public History(){} + native public void back(); + native public void forward(); + native public void go(); + native public void pushState(java.lang.Object statedata, java.lang.String title); + native public void pushState(java.lang.Object statedata); + native public void replaceState(java.lang.Object statedata, java.lang.String title); + native public void replaceState(java.lang.Object statedata); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBCursor.java b/core-lib/es6/src/main/java/def/dom/IDBCursor.java new file mode 100644 index 00000000..1cb3fc39 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBCursor.java @@ -0,0 +1,24 @@ +package def.dom; + +import def.js.Object; + +public class IDBCursor extends def.js.Object { + public java.lang.String direction; + public java.lang.Object key; + public java.lang.Object primaryKey; + public java.lang.Object source; + native public void advance(double count); + @jsweet.lang.Name("continue") + native public void Continue(java.lang.Object key); + native public IDBRequest delete(); + native public IDBRequest update(java.lang.Object value); + public java.lang.String NEXT; + public java.lang.String NEXT_NO_DUPLICATE; + public java.lang.String PREV; + public java.lang.String PREV_NO_DUPLICATE; + public static IDBCursor prototype; + public IDBCursor(){} + @jsweet.lang.Name("continue") + native public void Continue(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBCursorWithValue.java b/core-lib/es6/src/main/java/def/dom/IDBCursorWithValue.java new file mode 100644 index 00000000..9ed36c4e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBCursorWithValue.java @@ -0,0 +1,7 @@ +package def.dom; +public class IDBCursorWithValue extends IDBCursor { + public java.lang.Object value; + public static IDBCursorWithValue prototype; + public IDBCursorWithValue(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBDatabase.java b/core-lib/es6/src/main/java/def/dom/IDBDatabase.java new file mode 100644 index 00000000..fda2dd7c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBDatabase.java @@ -0,0 +1,30 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; + +public class IDBDatabase extends EventTarget { + public java.lang.String name; + public DOMStringList objectStoreNames; + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.lang.String version; + native public void close(); + native public IDBObjectStore createObjectStore(java.lang.String name, java.lang.Object optionalParameters); + native public void deleteObjectStore(java.lang.String name); + native public IDBTransaction transaction(java.lang.Object storeNames, java.lang.String mode); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static IDBDatabase prototype; + public IDBDatabase(){} + native public IDBObjectStore createObjectStore(java.lang.String name); + native public IDBTransaction transaction(java.lang.Object storeNames); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBEnvironment.java b/core-lib/es6/src/main/java/def/dom/IDBEnvironment.java new file mode 100644 index 00000000..56bb2f17 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBEnvironment.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class IDBEnvironment extends def.js.Object { + public IDBFactory indexedDB; + public IDBFactory msIndexedDB; +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBFactory.java b/core-lib/es6/src/main/java/def/dom/IDBFactory.java new file mode 100644 index 00000000..5bc6391b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBFactory.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class IDBFactory extends def.js.Object { + native public double cmp(java.lang.Object first, java.lang.Object second); + native public IDBOpenDBRequest deleteDatabase(java.lang.String name); + native public IDBOpenDBRequest open(java.lang.String name, double version); + public static IDBFactory prototype; + public IDBFactory(){} + native public IDBOpenDBRequest open(java.lang.String name); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBIndex.java b/core-lib/es6/src/main/java/def/dom/IDBIndex.java new file mode 100644 index 00000000..1e6cff50 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBIndex.java @@ -0,0 +1,23 @@ +package def.dom; + +import def.js.Object; + +public class IDBIndex extends def.js.Object { + public java.lang.String keyPath; + public java.lang.String name; + public IDBObjectStore objectStore; + public java.lang.Boolean unique; + native public IDBRequest count(java.lang.Object key); + native public IDBRequest get(java.lang.Object key); + native public IDBRequest getKey(java.lang.Object key); + native public IDBRequest openCursor(IDBKeyRange range, java.lang.String direction); + native public IDBRequest openKeyCursor(IDBKeyRange range, java.lang.String direction); + public static IDBIndex prototype; + public IDBIndex(){} + native public IDBRequest count(); + native public IDBRequest openCursor(IDBKeyRange range); + native public IDBRequest openCursor(); + native public IDBRequest openKeyCursor(IDBKeyRange range); + native public IDBRequest openKeyCursor(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBKeyRange.java b/core-lib/es6/src/main/java/def/dom/IDBKeyRange.java new file mode 100644 index 00000000..fc6b31f6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBKeyRange.java @@ -0,0 +1,21 @@ +package def.dom; + +import def.js.Object; + +public class IDBKeyRange extends def.js.Object { + public java.lang.Object lower; + public java.lang.Boolean lowerOpen; + public java.lang.Object upper; + public java.lang.Boolean upperOpen; + public static IDBKeyRange prototype; + public IDBKeyRange(){} + native public static IDBKeyRange bound(java.lang.Object lower, java.lang.Object upper, java.lang.Boolean lowerOpen, java.lang.Boolean upperOpen); + native public static IDBKeyRange lowerBound(java.lang.Object bound, java.lang.Boolean open); + native public static IDBKeyRange only(java.lang.Object value); + native public static IDBKeyRange upperBound(java.lang.Object bound, java.lang.Boolean open); + native public static IDBKeyRange bound(java.lang.Object lower, java.lang.Object upper, java.lang.Boolean lowerOpen); + native public static IDBKeyRange bound(java.lang.Object lower, java.lang.Object upper); + native public static IDBKeyRange lowerBound(java.lang.Object bound); + native public static IDBKeyRange upperBound(java.lang.Object bound); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBObjectStore.java b/core-lib/es6/src/main/java/def/dom/IDBObjectStore.java new file mode 100644 index 00000000..de618998 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBObjectStore.java @@ -0,0 +1,29 @@ +package def.dom; + +import def.js.Object; + +public class IDBObjectStore extends def.js.Object { + public DOMStringList indexNames; + public java.lang.String keyPath; + public java.lang.String name; + public IDBTransaction transaction; + native public IDBRequest add(java.lang.Object value, java.lang.Object key); + native public IDBRequest clear(); + native public IDBRequest count(java.lang.Object key); + native public IDBIndex createIndex(java.lang.String name, java.lang.String keyPath, java.lang.Object optionalParameters); + native public IDBRequest delete(java.lang.Object key); + native public void deleteIndex(java.lang.String indexName); + native public IDBRequest get(java.lang.Object key); + native public IDBIndex index(java.lang.String name); + native public IDBRequest openCursor(java.lang.Object range, java.lang.String direction); + native public IDBRequest put(java.lang.Object value, java.lang.Object key); + public static IDBObjectStore prototype; + public IDBObjectStore(){} + native public IDBRequest add(java.lang.Object value); + native public IDBRequest count(); + native public IDBIndex createIndex(java.lang.String name, java.lang.String keyPath); + native public IDBRequest openCursor(java.lang.Object range); + native public IDBRequest openCursor(); + native public IDBRequest put(java.lang.Object value); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBOpenDBRequest.java b/core-lib/es6/src/main/java/def/dom/IDBOpenDBRequest.java new file mode 100644 index 00000000..ed77a1b8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBOpenDBRequest.java @@ -0,0 +1,30 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.blocked; +import def.js.StringTypes.error; +import def.js.StringTypes.upgradeneeded; + +public class IDBOpenDBRequest extends IDBRequest { + public java.util.function.Function onblocked; + public java.util.function.Function onupgradeneeded; + native public void addEventListener(def.js.StringTypes.blocked type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerErrorEventFunction(error type, java.util.function.Function listener, java.lang.Boolean useCapture); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerFunction(error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.upgradeneeded type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static IDBOpenDBRequest prototype; + public IDBOpenDBRequest(){} + native public void addEventListener(def.js.StringTypes.blocked type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerErrorEventFunction(error type, java.util.function.Function listener); + @jsweet.lang.Name("addEventListener") + native public void addEventListenerListenerFunction(error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.upgradeneeded type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBRequest.java b/core-lib/es6/src/main/java/def/dom/IDBRequest.java new file mode 100644 index 00000000..78203109 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBRequest.java @@ -0,0 +1,26 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.error; +import def.js.StringTypes.success; + +public class IDBRequest extends EventTarget { + public DOMError error; + public java.util.function.Function onerror; + public java.util.function.Function onsuccess; + public java.lang.String readyState; + public java.lang.Object result; + public java.lang.Object source; + public IDBTransaction transaction; + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.success type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static IDBRequest prototype; + public IDBRequest(){} + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.success type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBTransaction.java b/core-lib/es6/src/main/java/def/dom/IDBTransaction.java new file mode 100644 index 00000000..9843b9a0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBTransaction.java @@ -0,0 +1,33 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.complete; +import def.js.StringTypes.error; + +public class IDBTransaction extends EventTarget { + public IDBDatabase db; + public DOMError error; + public java.lang.String mode; + public java.util.function.Function onabort; + public java.util.function.Function oncomplete; + public java.util.function.Function onerror; + native public void abort(); + native public IDBObjectStore objectStore(java.lang.String name); + public java.lang.String READ_ONLY; + public java.lang.String READ_WRITE; + public java.lang.String VERSION_CHANGE; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static IDBTransaction prototype; + public IDBTransaction(){} + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/IDBVersionChangeEvent.java b/core-lib/es6/src/main/java/def/dom/IDBVersionChangeEvent.java new file mode 100644 index 00000000..7c62d420 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/IDBVersionChangeEvent.java @@ -0,0 +1,9 @@ +package def.dom; + +public class IDBVersionChangeEvent extends Event { + public double newVersion; + public double oldVersion; + public static IDBVersionChangeEvent prototype; + public IDBVersionChangeEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Image.java b/core-lib/es6/src/main/java/def/dom/Image.java new file mode 100644 index 00000000..09ab9327 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Image.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +/** This is an automatically generated object type (see the source definition). */ +@jsweet.lang.ObjectType +public class Image extends def.js.Object { + public Image(double width, double height){} + public Image(double width){} + public Image(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ImageData.java b/core-lib/es6/src/main/java/def/dom/ImageData.java new file mode 100644 index 00000000..7d9f4a44 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ImageData.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class ImageData extends def.js.Object { + public double[] data; + public double height; + public double width; + public static ImageData prototype; + public ImageData(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/KeyAlgorithm.java b/core-lib/es6/src/main/java/def/dom/KeyAlgorithm.java new file mode 100644 index 00000000..8cff300c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/KeyAlgorithm.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class KeyAlgorithm extends def.js.Object { + @jsweet.lang.Optional + public java.lang.String name; +} + diff --git a/core-lib/es6/src/main/java/def/dom/KeyboardEvent.java b/core-lib/es6/src/main/java/def/dom/KeyboardEvent.java new file mode 100644 index 00000000..f67b13d6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/KeyboardEvent.java @@ -0,0 +1,30 @@ +package def.dom; + +public class KeyboardEvent extends UIEvent { + public java.lang.Boolean altKey; + @jsweet.lang.Name("char") + public java.lang.String Char; + public double charCode; + public java.lang.Boolean ctrlKey; + public java.lang.String key; + public double keyCode; + public java.lang.String locale; + public double location; + public java.lang.Boolean metaKey; + public java.lang.Boolean repeat; + public java.lang.Boolean shiftKey; + public double which; + native public java.lang.Boolean getModifierState(java.lang.String keyArg); + native public void initKeyboardEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, java.lang.String keyArg, double locationArg, java.lang.String modifiersListArg, java.lang.Boolean repeat, java.lang.String locale); + public double DOM_KEY_LOCATION_JOYSTICK; + public double DOM_KEY_LOCATION_LEFT; + public double DOM_KEY_LOCATION_MOBILE; + public double DOM_KEY_LOCATION_NUMPAD; + public double DOM_KEY_LOCATION_RIGHT; + public double DOM_KEY_LOCATION_STANDARD; + public static KeyboardEvent prototype; + public KeyboardEvent(java.lang.String typeArg, KeyboardEventInit eventInitDict){} + public KeyboardEvent(java.lang.String typeArg){} + protected KeyboardEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/KeyboardEventInit.java b/core-lib/es6/src/main/java/def/dom/KeyboardEventInit.java new file mode 100644 index 00000000..fe9ad44c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/KeyboardEventInit.java @@ -0,0 +1,12 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class KeyboardEventInit extends SharedKeyboardAndMouseEventInit { + @jsweet.lang.Optional + public java.lang.String key; + @jsweet.lang.Optional + public double location; + @jsweet.lang.Optional + public java.lang.Boolean repeat; +} + diff --git a/core-lib/es6/src/main/java/def/dom/LinkStyle.java b/core-lib/es6/src/main/java/def/dom/LinkStyle.java new file mode 100644 index 00000000..4e907292 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/LinkStyle.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class LinkStyle extends def.js.Object { + public StyleSheet sheet; +} + diff --git a/core-lib/es6/src/main/java/def/dom/Location.java b/core-lib/es6/src/main/java/def/dom/Location.java new file mode 100644 index 00000000..8789b4aa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Location.java @@ -0,0 +1,23 @@ +package def.dom; + +import def.js.Object; + +public class Location extends def.js.Object { + public java.lang.String hash; + public java.lang.String host; + public java.lang.String hostname; + public java.lang.String href; + public java.lang.String origin; + public java.lang.String pathname; + public java.lang.String port; + public java.lang.String protocol; + public java.lang.String search; + native public void assign(java.lang.String url); + native public void reload(java.lang.Boolean forcedReload); + native public void replace(java.lang.String url); + native public java.lang.String toString(); + public static Location prototype; + public Location(){} + native public void reload(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/LongRunningScriptDetectedEvent.java b/core-lib/es6/src/main/java/def/dom/LongRunningScriptDetectedEvent.java new file mode 100644 index 00000000..f2f8988b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/LongRunningScriptDetectedEvent.java @@ -0,0 +1,9 @@ +package def.dom; + +public class LongRunningScriptDetectedEvent extends Event { + public double executionTime; + public java.lang.Boolean stopPageScriptExecution; + public static LongRunningScriptDetectedEvent prototype; + public LongRunningScriptDetectedEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSApp.java b/core-lib/es6/src/main/java/def/dom/MSApp.java new file mode 100644 index 00000000..8146f8ab --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSApp.java @@ -0,0 +1,27 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class MSApp extends def.js.Object { + native public static MSAppAsyncOperation clearTemporaryWebDataAsync(); + native public static Blob createBlobFromRandomAccessStream(java.lang.String type, java.lang.Object seeker); + native public static java.lang.Object createDataPackage(java.lang.Object object); + native public static java.lang.Object createDataPackageFromSelection(); + native public static File createFileFromStorageFile(java.lang.Object storageFile); + native public static MSStream createStreamFromInputStream(java.lang.String type, java.lang.Object inputStream); + native public static void execAsyncAtPriority(MSExecAtPriorityFunctionCallback asynchronousCallback, java.lang.String priority, java.lang.Object... args); + native public static java.lang.Object execAtPriority(MSExecAtPriorityFunctionCallback synchronousCallback, java.lang.String priority, java.lang.Object... args); + native public static java.lang.String getCurrentPriority(); + native public static java.lang.Object getHtmlPrintDocumentSourceAsync(java.lang.Object htmlDoc); + native public static java.lang.Object getViewId(java.lang.Object view); + native public static java.lang.Boolean isTaskScheduledAtPriorityOrHigher(java.lang.String priority); + native public static void pageHandlesAllApplicationActivations(java.lang.Boolean enabled); + native public static void suppressSubdownloadCredentialPrompts(java.lang.Boolean suppress); + native public static void terminateApp(java.lang.Object exceptionObject); + public static java.lang.String CURRENT; + public static java.lang.String HIGH; + public static java.lang.String IDLE; + public static java.lang.String NORMAL; +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSAppAsyncOperation.java b/core-lib/es6/src/main/java/def/dom/MSAppAsyncOperation.java new file mode 100644 index 00000000..0b881acc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSAppAsyncOperation.java @@ -0,0 +1,28 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.complete; +import def.js.StringTypes.error; + +public class MSAppAsyncOperation extends EventTarget { + public DOMError error; + public java.util.function.Function oncomplete; + public java.util.function.Function onerror; + public double readyState; + public java.lang.Object result; + native public void start(); + public double COMPLETED; + public double ERROR; + public double STARTED; + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static MSAppAsyncOperation prototype; + public MSAppAsyncOperation(){} + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSBaseReader.java b/core-lib/es6/src/main/java/def/dom/MSBaseReader.java new file mode 100644 index 00000000..a2e4df4d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSBaseReader.java @@ -0,0 +1,43 @@ +package def.dom; + +import def.js.Object; +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; +import def.js.StringTypes.load; +import def.js.StringTypes.loadend; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.progress; + +@jsweet.lang.Interface +public abstract class MSBaseReader extends def.js.Object { + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public java.util.function.Function onloadend; + public java.util.function.Function onloadstart; + public java.util.function.Function onprogress; + public double readyState; + public java.lang.Object result; + native public void abort(); + public double DONE; + public double EMPTY; + public double LOADING; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSBlobBuilder.java b/core-lib/es6/src/main/java/def/dom/MSBlobBuilder.java new file mode 100644 index 00000000..0ceda206 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSBlobBuilder.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class MSBlobBuilder extends def.js.Object { + native public void append(java.lang.Object data, java.lang.String endings); + native public Blob getBlob(java.lang.String contentType); + public static MSBlobBuilder prototype; + public MSBlobBuilder(){} + native public void append(java.lang.Object data); + native public Blob getBlob(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSCSSMatrix.java b/core-lib/es6/src/main/java/def/dom/MSCSSMatrix.java new file mode 100644 index 00000000..2b9e08cb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSCSSMatrix.java @@ -0,0 +1,47 @@ +package def.dom; + +import def.js.Object; + +public class MSCSSMatrix extends def.js.Object { + public double a; + public double b; + public double c; + public double d; + public double e; + public double f; + public double m11; + public double m12; + public double m13; + public double m14; + public double m21; + public double m22; + public double m23; + public double m24; + public double m31; + public double m32; + public double m33; + public double m34; + public double m41; + public double m42; + public double m43; + public double m44; + native public MSCSSMatrix inverse(); + native public MSCSSMatrix multiply(MSCSSMatrix secondMatrix); + native public MSCSSMatrix rotate(double angleX, double angleY, double angleZ); + native public MSCSSMatrix rotateAxisAngle(double x, double y, double z, double angle); + native public MSCSSMatrix scale(double scaleX, double scaleY, double scaleZ); + native public void setMatrixValue(java.lang.String value); + native public MSCSSMatrix skewX(double angle); + native public MSCSSMatrix skewY(double angle); + native public java.lang.String toString(); + native public MSCSSMatrix translate(double x, double y, double z); + public static MSCSSMatrix prototype; + public MSCSSMatrix(java.lang.String text){} + native public MSCSSMatrix rotate(double angleX, double angleY); + native public MSCSSMatrix rotate(double angleX); + native public MSCSSMatrix scale(double scaleX, double scaleY); + native public MSCSSMatrix scale(double scaleX); + native public MSCSSMatrix translate(double x, double y); + public MSCSSMatrix(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSExecAtPriorityFunctionCallback.java b/core-lib/es6/src/main/java/def/dom/MSExecAtPriorityFunctionCallback.java new file mode 100644 index 00000000..3887d506 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSExecAtPriorityFunctionCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface MSExecAtPriorityFunctionCallback { + public java.lang.Object apply(java.lang.Object... args); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSFileSaver.java b/core-lib/es6/src/main/java/def/dom/MSFileSaver.java new file mode 100644 index 00000000..ebb63d81 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSFileSaver.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class MSFileSaver extends def.js.Object { + native public java.lang.Boolean msSaveBlob(java.lang.Object blob, java.lang.String defaultName); + native public java.lang.Boolean msSaveOrOpenBlob(java.lang.Object blob, java.lang.String defaultName); + native public java.lang.Boolean msSaveBlob(java.lang.Object blob); + native public java.lang.Boolean msSaveOrOpenBlob(java.lang.Object blob); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSGesture.java b/core-lib/es6/src/main/java/def/dom/MSGesture.java new file mode 100644 index 00000000..6e0796ab --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSGesture.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class MSGesture extends def.js.Object { + public Element target; + native public void addPointer(double pointerId); + native public void stop(); + public static MSGesture prototype; + public MSGesture(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSGestureEvent.java b/core-lib/es6/src/main/java/def/dom/MSGestureEvent.java new file mode 100644 index 00000000..572b7799 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSGestureEvent.java @@ -0,0 +1,30 @@ +package def.dom; + +public class MSGestureEvent extends UIEvent { + public double clientX; + public double clientY; + public double expansion; + public java.lang.Object gestureObject; + public double hwTimestamp; + public double offsetX; + public double offsetY; + public double rotation; + public double scale; + public double screenX; + public double screenY; + public double translationX; + public double translationY; + public double velocityAngular; + public double velocityExpansion; + public double velocityX; + public double velocityY; + native public void initGestureEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, double offsetXArg, double offsetYArg, double translationXArg, double translationYArg, double scaleArg, double expansionArg, double rotationArg, double velocityXArg, double velocityYArg, double velocityExpansionArg, double velocityAngularArg, double hwTimestampArg); + public double MSGESTURE_FLAG_BEGIN; + public double MSGESTURE_FLAG_CANCEL; + public double MSGESTURE_FLAG_END; + public double MSGESTURE_FLAG_INERTIA; + public double MSGESTURE_FLAG_NONE; + public static MSGestureEvent prototype; + public MSGestureEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSGraphicsTrust.java b/core-lib/es6/src/main/java/def/dom/MSGraphicsTrust.java new file mode 100644 index 00000000..819c1a23 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSGraphicsTrust.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class MSGraphicsTrust extends def.js.Object { + public java.lang.Boolean constrictionActive; + public java.lang.String status; + public static MSGraphicsTrust prototype; + public MSGraphicsTrust(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSHTMLWebViewElement.java b/core-lib/es6/src/main/java/def/dom/MSHTMLWebViewElement.java new file mode 100644 index 00000000..5994a31c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSHTMLWebViewElement.java @@ -0,0 +1,30 @@ +package def.dom; + +public class MSHTMLWebViewElement extends HTMLElement { + public java.lang.Boolean canGoBack; + public java.lang.Boolean canGoForward; + public java.lang.Boolean containsFullScreenElement; + public java.lang.String documentTitle; + public double height; + public MSWebViewSettings settings; + public java.lang.String src; + public double width; + native public void addWebAllowedObject(java.lang.String name, java.lang.Object applicationObject); + native public java.lang.String buildLocalStreamUri(java.lang.String contentIdentifier, java.lang.String relativePath); + native public MSWebViewAsyncOperation capturePreviewToBlobAsync(); + native public MSWebViewAsyncOperation captureSelectedContentToDataPackageAsync(); + native public DeferredPermissionRequest getDeferredPermissionRequestById(double id); + native public DeferredPermissionRequest[] getDeferredPermissionRequests(); + native public void goBack(); + native public void goForward(); + native public MSWebViewAsyncOperation invokeScriptAsync(java.lang.String scriptName, java.lang.Object... args); + native public void navigate(java.lang.String uri); + native public void navigateToLocalStreamUri(java.lang.String source, java.lang.Object streamResolver); + native public void navigateToString(java.lang.String contents); + native public void navigateWithHttpRequestMessage(java.lang.Object requestMessage); + native public void refresh(); + native public void stop(); + public static MSHTMLWebViewElement prototype; + public MSHTMLWebViewElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSHeaderFooter.java b/core-lib/es6/src/main/java/def/dom/MSHeaderFooter.java new file mode 100644 index 00000000..cbead935 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSHeaderFooter.java @@ -0,0 +1,22 @@ +package def.dom; + +import def.js.Object; + +public class MSHeaderFooter extends def.js.Object { + public java.lang.String URL; + public java.lang.String dateLong; + public java.lang.String dateShort; + public java.lang.String font; + public java.lang.String htmlFoot; + public java.lang.String htmlHead; + public double page; + public double pageTotal; + public java.lang.String textFoot; + public java.lang.String textHead; + public java.lang.String timeLong; + public java.lang.String timeShort; + public java.lang.String title; + public static MSHeaderFooter prototype; + public MSHeaderFooter(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSInputMethodContext.java b/core-lib/es6/src/main/java/def/dom/MSInputMethodContext.java new file mode 100644 index 00000000..4ada9dea --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSInputMethodContext.java @@ -0,0 +1,32 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.MSCandidateWindowHide; +import def.js.StringTypes.MSCandidateWindowShow; +import def.js.StringTypes.MSCandidateWindowUpdate; + +public class MSInputMethodContext extends EventTarget { + public double compositionEndOffset; + public double compositionStartOffset; + public java.util.function.Function oncandidatewindowhide; + public java.util.function.Function oncandidatewindowshow; + public java.util.function.Function oncandidatewindowupdate; + public HTMLElement target; + native public ClientRect getCandidateWindowClientRect(); + native public java.lang.String[] getCompositionAlternatives(); + native public java.lang.Boolean hasComposition(); + native public java.lang.Boolean isCandidateWindowVisible(); + native public void addEventListener(def.js.StringTypes.MSCandidateWindowHide type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSCandidateWindowShow type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSCandidateWindowUpdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static MSInputMethodContext prototype; + public MSInputMethodContext(){} + native public void addEventListener(def.js.StringTypes.MSCandidateWindowHide type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSCandidateWindowShow type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSCandidateWindowUpdate type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSLaunchUriCallback.java b/core-lib/es6/src/main/java/def/dom/MSLaunchUriCallback.java new file mode 100644 index 00000000..bd060e8a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSLaunchUriCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface MSLaunchUriCallback { + public void apply(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSManipulationEvent.java b/core-lib/es6/src/main/java/def/dom/MSManipulationEvent.java new file mode 100644 index 00000000..3b9e2466 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSManipulationEvent.java @@ -0,0 +1,20 @@ +package def.dom; + +public class MSManipulationEvent extends UIEvent { + public double currentState; + public double inertiaDestinationX; + public double inertiaDestinationY; + public double lastState; + native public void initMSManipulationEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double lastState, double currentState); + public double MS_MANIPULATION_STATE_ACTIVE; + public double MS_MANIPULATION_STATE_CANCELLED; + public double MS_MANIPULATION_STATE_COMMITTED; + public double MS_MANIPULATION_STATE_DRAGGING; + public double MS_MANIPULATION_STATE_INERTIA; + public double MS_MANIPULATION_STATE_PRESELECT; + public double MS_MANIPULATION_STATE_SELECTING; + public double MS_MANIPULATION_STATE_STOPPED; + public static MSManipulationEvent prototype; + public MSManipulationEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSMediaKeyError.java b/core-lib/es6/src/main/java/def/dom/MSMediaKeyError.java new file mode 100644 index 00000000..ce730ccf --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSMediaKeyError.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class MSMediaKeyError extends def.js.Object { + public double code; + public double systemCode; + public double MS_MEDIA_KEYERR_CLIENT; + public double MS_MEDIA_KEYERR_DOMAIN; + public double MS_MEDIA_KEYERR_HARDWARECHANGE; + public double MS_MEDIA_KEYERR_OUTPUT; + public double MS_MEDIA_KEYERR_SERVICE; + public double MS_MEDIA_KEYERR_UNKNOWN; + public static MSMediaKeyError prototype; + public MSMediaKeyError(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSMediaKeyMessageEvent.java b/core-lib/es6/src/main/java/def/dom/MSMediaKeyMessageEvent.java new file mode 100644 index 00000000..e1ccb600 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSMediaKeyMessageEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Uint8Array; + +public class MSMediaKeyMessageEvent extends Event { + public java.lang.String destinationURL; + public Uint8Array message; + public static MSMediaKeyMessageEvent prototype; + public MSMediaKeyMessageEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSMediaKeyNeededEvent.java b/core-lib/es6/src/main/java/def/dom/MSMediaKeyNeededEvent.java new file mode 100644 index 00000000..1a5d2224 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSMediaKeyNeededEvent.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Uint8Array; + +public class MSMediaKeyNeededEvent extends Event { + public Uint8Array initData; + public static MSMediaKeyNeededEvent prototype; + public MSMediaKeyNeededEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSMediaKeySession.java b/core-lib/es6/src/main/java/def/dom/MSMediaKeySession.java new file mode 100644 index 00000000..a568047d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSMediaKeySession.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Uint8Array; + +public class MSMediaKeySession extends EventTarget { + public MSMediaKeyError error; + public java.lang.String keySystem; + public java.lang.String sessionId; + native public void close(); + native public void update(Uint8Array key); + public static MSMediaKeySession prototype; + public MSMediaKeySession(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSMediaKeys.java b/core-lib/es6/src/main/java/def/dom/MSMediaKeys.java new file mode 100644 index 00000000..589a0c49 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSMediaKeys.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; +import def.js.Uint8Array; + +public class MSMediaKeys extends def.js.Object { + public java.lang.String keySystem; + native public MSMediaKeySession createSession(java.lang.String type, Uint8Array initData, Uint8Array cdmData); + public static MSMediaKeys prototype; + public MSMediaKeys(java.lang.String keySystem){} + native public static java.lang.Boolean isTypeSupported(java.lang.String keySystem, java.lang.String type); + native public MSMediaKeySession createSession(java.lang.String type, Uint8Array initData); + native public static java.lang.Boolean isTypeSupported(java.lang.String keySystem); + protected MSMediaKeys(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSMimeTypesCollection.java b/core-lib/es6/src/main/java/def/dom/MSMimeTypesCollection.java new file mode 100644 index 00000000..b969c482 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSMimeTypesCollection.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class MSMimeTypesCollection extends def.js.Object { + public double length; + public static MSMimeTypesCollection prototype; + public MSMimeTypesCollection(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSNavigatorDoNotTrack.java b/core-lib/es6/src/main/java/def/dom/MSNavigatorDoNotTrack.java new file mode 100644 index 00000000..cde302fe --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSNavigatorDoNotTrack.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class MSNavigatorDoNotTrack extends def.js.Object { + native public java.lang.Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args); + native public java.lang.Boolean confirmWebWideTrackingException(ExceptionInformation args); + native public void removeSiteSpecificTrackingException(ExceptionInformation args); + native public void removeWebWideTrackingException(ExceptionInformation args); + native public void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args); + native public void storeWebWideTrackingException(StoreExceptionsInformation args); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSPluginsCollection.java b/core-lib/es6/src/main/java/def/dom/MSPluginsCollection.java new file mode 100644 index 00000000..64422f1a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSPluginsCollection.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class MSPluginsCollection extends def.js.Object { + public double length; + native public void refresh(java.lang.Boolean reload); + public static MSPluginsCollection prototype; + public MSPluginsCollection(){} + native public void refresh(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSPointerEvent.java b/core-lib/es6/src/main/java/def/dom/MSPointerEvent.java new file mode 100644 index 00000000..58046439 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSPointerEvent.java @@ -0,0 +1,24 @@ +package def.dom; + +public class MSPointerEvent extends MouseEvent { + public java.lang.Object currentPoint; + public double height; + public double hwTimestamp; + public java.lang.Object intermediatePoints; + public java.lang.Boolean isPrimary; + public double pointerId; + public java.lang.Object pointerType; + public double pressure; + public double rotation; + public double tiltX; + public double tiltY; + public double width; + native public void getCurrentPoint(Element element); + native public void getIntermediatePoints(Element element); + native public void initPointerEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, java.lang.Boolean ctrlKeyArg, java.lang.Boolean altKeyArg, java.lang.Boolean shiftKeyArg, java.lang.Boolean metaKeyArg, double buttonArg, EventTarget relatedTargetArg, double offsetXArg, double offsetYArg, double widthArg, double heightArg, double pressure, double rotation, double tiltX, double tiltY, double pointerIdArg, java.lang.Object pointerType, double hwTimestampArg, java.lang.Boolean isPrimary); + public static MSPointerEvent prototype; + public MSPointerEvent(java.lang.String typeArg, PointerEventInit eventInitDict){} + public MSPointerEvent(java.lang.String typeArg){} + protected MSPointerEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSPrintManagerTemplatePrinter.java b/core-lib/es6/src/main/java/def/dom/MSPrintManagerTemplatePrinter.java new file mode 100644 index 00000000..152f9e83 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSPrintManagerTemplatePrinter.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({EventTarget.class}) +public class MSPrintManagerTemplatePrinter extends MSTemplatePrinter { + public double percentScale; + public java.lang.Boolean showHeaderFooter; + public java.lang.Boolean shrinkToFit; + native public void drawPreviewPage(HTMLElement element, double pageNumber); + native public void endPrint(); + native public java.lang.Object getPrintTaskOptionValue(java.lang.String key); + native public void invalidatePreview(); + native public void setPageCount(double pageCount); + native public void startPrint(); + public static MSPrintManagerTemplatePrinter prototype; + public MSPrintManagerTemplatePrinter(){} + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public java.lang.Boolean dispatchEvent(Event evt); + native public void removeEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void removeEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void removeEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + native public void removeEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSRangeCollection.java b/core-lib/es6/src/main/java/def/dom/MSRangeCollection.java new file mode 100644 index 00000000..50ea3697 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSRangeCollection.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class MSRangeCollection extends Iterable { + public double length; + native public Range item(double index); + native public Range $get(double index); + public static MSRangeCollection prototype; + public MSRangeCollection(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSSiteModeEvent.java b/core-lib/es6/src/main/java/def/dom/MSSiteModeEvent.java new file mode 100644 index 00000000..5018ed39 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSSiteModeEvent.java @@ -0,0 +1,9 @@ +package def.dom; + +public class MSSiteModeEvent extends Event { + public java.lang.String actionURL; + public double buttonID; + public static MSSiteModeEvent prototype; + public MSSiteModeEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSStream.java b/core-lib/es6/src/main/java/def/dom/MSStream.java new file mode 100644 index 00000000..c6bf1368 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSStream.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class MSStream extends def.js.Object { + public java.lang.String type; + native public void msClose(); + native public java.lang.Object msDetachStream(); + public static MSStream prototype; + public MSStream(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSStreamReader.java b/core-lib/es6/src/main/java/def/dom/MSStreamReader.java new file mode 100644 index 00000000..269344f4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSStreamReader.java @@ -0,0 +1,56 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; +import def.js.StringTypes.load; +import def.js.StringTypes.loadend; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.progress; + +@jsweet.lang.Extends({MSBaseReader.class}) +public class MSStreamReader extends EventTarget { + public DOMError error; + native public void readAsArrayBuffer(MSStream stream, double size); + native public void readAsBinaryString(MSStream stream, double size); + native public void readAsBlob(MSStream stream, double size); + native public void readAsDataURL(MSStream stream, double size); + native public void readAsText(MSStream stream, java.lang.String encoding, double size); + public static MSStreamReader prototype; + public MSStreamReader(){} + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public java.util.function.Function onloadend; + public java.util.function.Function onloadstart; + public java.util.function.Function onprogress; + public double readyState; + public java.lang.Object result; + native public void abort(); + public double DONE; + public double EMPTY; + public double LOADING; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void readAsArrayBuffer(MSStream stream); + native public void readAsBinaryString(MSStream stream); + native public void readAsBlob(MSStream stream); + native public void readAsDataURL(MSStream stream); + native public void readAsText(MSStream stream, java.lang.String encoding); + native public void readAsText(MSStream stream); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSTemplatePrinter.java b/core-lib/es6/src/main/java/def/dom/MSTemplatePrinter.java new file mode 100644 index 00000000..29c086a3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSTemplatePrinter.java @@ -0,0 +1,58 @@ +package def.dom; + +import def.js.Object; + +public class MSTemplatePrinter extends def.js.Object { + public java.lang.Boolean collate; + public double copies; + public java.lang.Boolean currentPage; + public java.lang.Boolean currentPageAvail; + public java.lang.Boolean duplex; + public java.lang.String footer; + public java.lang.Boolean frameActive; + public java.lang.Boolean frameActiveEnabled; + public java.lang.Boolean frameAsShown; + public java.lang.Boolean framesetDocument; + public java.lang.String header; + public java.lang.String headerFooterFont; + public double marginBottom; + public double marginLeft; + public double marginRight; + public double marginTop; + public java.lang.String orientation; + public double pageFrom; + public double pageHeight; + public double pageTo; + public double pageWidth; + public java.lang.Boolean selectedPages; + public java.lang.Boolean selection; + public java.lang.Boolean selectionEnabled; + public double unprintableBottom; + public double unprintableLeft; + public double unprintableRight; + public double unprintableTop; + public java.lang.Boolean usePrinterCopyCollate; + native public MSHeaderFooter createHeaderFooter(); + native public java.lang.Object deviceSupports(java.lang.String property); + native public java.lang.Boolean ensurePrintDialogDefaults(); + native public java.lang.Object getPageMarginBottom(CSSPageRule pageRule, double pageWidth, double pageHeight); + native public java.lang.Boolean getPageMarginBottomImportant(CSSPageRule pageRule); + native public java.lang.Object getPageMarginLeft(CSSPageRule pageRule, double pageWidth, double pageHeight); + native public java.lang.Boolean getPageMarginLeftImportant(CSSPageRule pageRule); + native public java.lang.Object getPageMarginRight(CSSPageRule pageRule, double pageWidth, double pageHeight); + native public java.lang.Boolean getPageMarginRightImportant(CSSPageRule pageRule); + native public java.lang.Object getPageMarginTop(CSSPageRule pageRule, double pageWidth, double pageHeight); + native public java.lang.Boolean getPageMarginTopImportant(CSSPageRule pageRule); + native public void printBlankPage(); + native public java.lang.Boolean printNonNative(java.lang.Object document); + native public void printNonNativeFrames(java.lang.Object document, java.lang.Boolean activeFrame); + native public void printPage(HTMLElement element); + native public java.lang.Boolean showPageSetupDialog(); + native public java.lang.Boolean showPrintDialog(); + native public java.lang.Boolean startDoc(java.lang.String title); + native public void stopDoc(); + native public void updatePageStatus(double status); + public static MSTemplatePrinter prototype; + public MSTemplatePrinter(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSUnsafeFunctionCallback.java b/core-lib/es6/src/main/java/def/dom/MSUnsafeFunctionCallback.java new file mode 100644 index 00000000..bff68888 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSUnsafeFunctionCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface MSUnsafeFunctionCallback { + public java.lang.Object apply(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSWebViewAsyncOperation.java b/core-lib/es6/src/main/java/def/dom/MSWebViewAsyncOperation.java new file mode 100644 index 00000000..bfd341b2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSWebViewAsyncOperation.java @@ -0,0 +1,33 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.complete; +import def.js.StringTypes.error; + +public class MSWebViewAsyncOperation extends EventTarget { + public DOMError error; + public java.util.function.Function oncomplete; + public java.util.function.Function onerror; + public double readyState; + public java.lang.Object result; + public MSHTMLWebViewElement target; + public double type; + native public void start(); + public double COMPLETED; + public double ERROR; + public double STARTED; + public double TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM; + public double TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION; + public double TYPE_INVOKE_SCRIPT; + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static MSWebViewAsyncOperation prototype; + public MSWebViewAsyncOperation(){} + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MSWebViewSettings.java b/core-lib/es6/src/main/java/def/dom/MSWebViewSettings.java new file mode 100644 index 00000000..d300985d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MSWebViewSettings.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class MSWebViewSettings extends def.js.Object { + public java.lang.Boolean isIndexedDBEnabled; + public java.lang.Boolean isJavaScriptEnabled; + public static MSWebViewSettings prototype; + public MSWebViewSettings(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MediaElementAudioSourceNode.java b/core-lib/es6/src/main/java/def/dom/MediaElementAudioSourceNode.java new file mode 100644 index 00000000..93e9e4a4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MediaElementAudioSourceNode.java @@ -0,0 +1,7 @@ +package def.dom; + +public class MediaElementAudioSourceNode extends AudioNode { + public static MediaElementAudioSourceNode prototype; + public MediaElementAudioSourceNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MediaError.java b/core-lib/es6/src/main/java/def/dom/MediaError.java new file mode 100644 index 00000000..d3b1a8ee --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MediaError.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class MediaError extends def.js.Object { + public double code; + public double msExtendedCode; + public double MEDIA_ERR_ABORTED; + public double MEDIA_ERR_DECODE; + public double MEDIA_ERR_NETWORK; + public double MEDIA_ERR_SRC_NOT_SUPPORTED; + public double MS_MEDIA_ERR_ENCRYPTED; + public static MediaError prototype; + public MediaError(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MediaList.java b/core-lib/es6/src/main/java/def/dom/MediaList.java new file mode 100644 index 00000000..dd988772 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MediaList.java @@ -0,0 +1,20 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class MediaList extends Iterable { + public double length; + public java.lang.String mediaText; + native public void appendMedium(java.lang.String newMedium); + native public void deleteMedium(java.lang.String oldMedium); + native public java.lang.String item(double index); + native public java.lang.String toString(); + native public java.lang.String $get(double index); + public static MediaList prototype; + public MediaList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MediaQueryList.java b/core-lib/es6/src/main/java/def/dom/MediaQueryList.java new file mode 100644 index 00000000..13fb7ea5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MediaQueryList.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class MediaQueryList extends def.js.Object { + public java.lang.Boolean matches; + public java.lang.String media; + native public void addListener(MediaQueryListListener listener); + native public void removeListener(MediaQueryListListener listener); + public static MediaQueryList prototype; + public MediaQueryList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MediaQueryListListener.java b/core-lib/es6/src/main/java/def/dom/MediaQueryListListener.java new file mode 100644 index 00000000..b2db1235 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MediaQueryListListener.java @@ -0,0 +1,5 @@ +package def.dom; +public interface MediaQueryListListener { + public void apply(MediaQueryList mql); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MediaSource.java b/core-lib/es6/src/main/java/def/dom/MediaSource.java new file mode 100644 index 00000000..f55e575f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MediaSource.java @@ -0,0 +1,16 @@ +package def.dom; + +public class MediaSource extends EventTarget { + public SourceBufferList activeSourceBuffers; + public double duration; + public double readyState; + public SourceBufferList sourceBuffers; + native public SourceBuffer addSourceBuffer(java.lang.String type); + native public void endOfStream(double error); + native public void removeSourceBuffer(SourceBuffer sourceBuffer); + public static MediaSource prototype; + public MediaSource(){} + native public static java.lang.Boolean isTypeSupported(java.lang.String type); + native public void endOfStream(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MessageChannel.java b/core-lib/es6/src/main/java/def/dom/MessageChannel.java new file mode 100644 index 00000000..d0077a19 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MessageChannel.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class MessageChannel extends def.js.Object { + public MessagePort port1; + public MessagePort port2; + public static MessageChannel prototype; + public MessageChannel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MessageEvent.java b/core-lib/es6/src/main/java/def/dom/MessageEvent.java new file mode 100644 index 00000000..95840d9c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MessageEvent.java @@ -0,0 +1,12 @@ +package def.dom; + +public class MessageEvent extends Event { + public java.lang.Object data; + public java.lang.String origin; + public java.lang.Object ports; + public Window source; + native public void initMessageEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.Object dataArg, java.lang.String originArg, java.lang.String lastEventIdArg, Window sourceArg); + public static MessageEvent prototype; + public MessageEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MessagePort.java b/core-lib/es6/src/main/java/def/dom/MessagePort.java new file mode 100644 index 00000000..21ac090f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MessagePort.java @@ -0,0 +1,22 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.message; + +public class MessagePort extends EventTarget { + public java.util.function.Function onmessage; + native public void close(); + native public void postMessage(java.lang.Object message, java.lang.Object ports); + native public void start(); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static MessagePort prototype; + public MessagePort(){} + native public void postMessage(java.lang.Object message); + native public void postMessage(); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MimeType.java b/core-lib/es6/src/main/java/def/dom/MimeType.java new file mode 100644 index 00000000..22b93347 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MimeType.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class MimeType extends def.js.Object { + public java.lang.String description; + public Plugin enabledPlugin; + public java.lang.String suffixes; + public java.lang.String type; + public static MimeType prototype; + public MimeType(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MimeTypeArray.java b/core-lib/es6/src/main/java/def/dom/MimeTypeArray.java new file mode 100644 index 00000000..f19916f8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MimeTypeArray.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class MimeTypeArray extends Iterable { + public double length; + native public Plugin item(double index); + native public Plugin namedItem(java.lang.String type); + native public Plugin $get(double index); + public static MimeTypeArray prototype; + public MimeTypeArray(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MouseEvent.java b/core-lib/es6/src/main/java/def/dom/MouseEvent.java new file mode 100644 index 00000000..e7f2e34c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MouseEvent.java @@ -0,0 +1,35 @@ +package def.dom; + +public class MouseEvent extends UIEvent { + public java.lang.Boolean altKey; + public double button; + public double buttons; + public double clientX; + public double clientY; + public java.lang.Boolean ctrlKey; + public Element fromElement; + public double layerX; + public double layerY; + public java.lang.Boolean metaKey; + public double movementX; + public double movementY; + public double offsetX; + public double offsetY; + public double pageX; + public double pageY; + public EventTarget relatedTarget; + public double screenX; + public double screenY; + public java.lang.Boolean shiftKey; + public Element toElement; + public double which; + public double x; + public double y; + native public java.lang.Boolean getModifierState(java.lang.String keyArg); + native public void initMouseEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, java.lang.Boolean ctrlKeyArg, java.lang.Boolean altKeyArg, java.lang.Boolean shiftKeyArg, java.lang.Boolean metaKeyArg, double buttonArg, EventTarget relatedTargetArg); + public static MouseEvent prototype; + public MouseEvent(java.lang.String typeArg, MouseEventInit eventInitDict){} + public MouseEvent(java.lang.String typeArg){} + protected MouseEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MouseEventInit.java b/core-lib/es6/src/main/java/def/dom/MouseEventInit.java new file mode 100644 index 00000000..2d44c941 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MouseEventInit.java @@ -0,0 +1,20 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class MouseEventInit extends SharedKeyboardAndMouseEventInit { + @jsweet.lang.Optional + public double screenX; + @jsweet.lang.Optional + public double screenY; + @jsweet.lang.Optional + public double clientX; + @jsweet.lang.Optional + public double clientY; + @jsweet.lang.Optional + public double button; + @jsweet.lang.Optional + public double buttons; + @jsweet.lang.Optional + public EventTarget relatedTarget; +} + diff --git a/core-lib/es6/src/main/java/def/dom/MouseWheelEvent.java b/core-lib/es6/src/main/java/def/dom/MouseWheelEvent.java new file mode 100644 index 00000000..14e83a90 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MouseWheelEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class MouseWheelEvent extends MouseEvent { + public double wheelDelta; + public double wheelDeltaX; + public double wheelDeltaY; + native public void initMouseWheelEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, double buttonArg, EventTarget relatedTargetArg, java.lang.String modifiersListArg, double wheelDeltaArg); + public static MouseWheelEvent prototype; + public MouseWheelEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MsZoomToOptions.java b/core-lib/es6/src/main/java/def/dom/MsZoomToOptions.java new file mode 100644 index 00000000..2e234255 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MsZoomToOptions.java @@ -0,0 +1,20 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class MsZoomToOptions extends def.js.Object { + @jsweet.lang.Optional + public double contentX; + @jsweet.lang.Optional + public double contentY; + @jsweet.lang.Optional + public java.lang.String viewportX; + @jsweet.lang.Optional + public java.lang.String viewportY; + @jsweet.lang.Optional + public double scaleFactor; + @jsweet.lang.Optional + public java.lang.String animate; +} + diff --git a/core-lib/es6/src/main/java/def/dom/MutationCallback.java b/core-lib/es6/src/main/java/def/dom/MutationCallback.java new file mode 100644 index 00000000..69ed236e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MutationCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface MutationCallback { + public void apply(MutationRecord[] mutations, MutationObserver observer); +} + diff --git a/core-lib/es6/src/main/java/def/dom/MutationEvent.java b/core-lib/es6/src/main/java/def/dom/MutationEvent.java new file mode 100644 index 00000000..20eb4f2d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MutationEvent.java @@ -0,0 +1,16 @@ +package def.dom; + +public class MutationEvent extends Event { + public double attrChange; + public java.lang.String attrName; + public java.lang.String newValue; + public java.lang.String prevValue; + public Node relatedNode; + native public void initMutationEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Node relatedNodeArg, java.lang.String prevValueArg, java.lang.String newValueArg, java.lang.String attrNameArg, double attrChangeArg); + public double ADDITION; + public double MODIFICATION; + public double REMOVAL; + public static MutationEvent prototype; + public MutationEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MutationObserver.java b/core-lib/es6/src/main/java/def/dom/MutationObserver.java new file mode 100644 index 00000000..1ecb1271 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MutationObserver.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class MutationObserver extends def.js.Object { + native public void disconnect(); + native public void observe(Node target, MutationObserverInit options); + native public MutationRecord[] takeRecords(); + public static MutationObserver prototype; + public MutationObserver(MutationCallback callback){} + protected MutationObserver(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/MutationObserverInit.java b/core-lib/es6/src/main/java/def/dom/MutationObserverInit.java new file mode 100644 index 00000000..d4d896fa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MutationObserverInit.java @@ -0,0 +1,22 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class MutationObserverInit extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean childList; + @jsweet.lang.Optional + public java.lang.Boolean attributes; + @jsweet.lang.Optional + public java.lang.Boolean characterData; + @jsweet.lang.Optional + public java.lang.Boolean subtree; + @jsweet.lang.Optional + public java.lang.Boolean attributeOldValue; + @jsweet.lang.Optional + public java.lang.Boolean characterDataOldValue; + @jsweet.lang.Optional + public java.lang.String[] attributeFilter; +} + diff --git a/core-lib/es6/src/main/java/def/dom/MutationRecord.java b/core-lib/es6/src/main/java/def/dom/MutationRecord.java new file mode 100644 index 00000000..c19885eb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/MutationRecord.java @@ -0,0 +1,18 @@ +package def.dom; + +import def.js.Object; + +public class MutationRecord extends def.js.Object { + public NodeList addedNodes; + public java.lang.String attributeName; + public java.lang.String attributeNamespace; + public Node nextSibling; + public java.lang.String oldValue; + public Node previousSibling; + public NodeList removedNodes; + public Node target; + public java.lang.String type; + public static MutationRecord prototype; + public MutationRecord(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/NamedNodeMap.java b/core-lib/es6/src/main/java/def/dom/NamedNodeMap.java new file mode 100644 index 00000000..e4019c40 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NamedNodeMap.java @@ -0,0 +1,22 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class NamedNodeMap extends Iterable { + public double length; + native public Attr getNamedItem(java.lang.String name); + native public Attr getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName); + native public Attr item(double index); + native public Attr removeNamedItem(java.lang.String name); + native public Attr removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName); + native public Attr setNamedItem(Attr arg); + native public Attr setNamedItemNS(Attr arg); + native public Attr $get(double index); + public static NamedNodeMap prototype; + public NamedNodeMap(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigationCompletedEvent.java b/core-lib/es6/src/main/java/def/dom/NavigationCompletedEvent.java new file mode 100644 index 00000000..e82aec2c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigationCompletedEvent.java @@ -0,0 +1,8 @@ +package def.dom; +public class NavigationCompletedEvent extends NavigationEvent { + public java.lang.Boolean isSuccess; + public double webErrorStatus; + public static NavigationCompletedEvent prototype; + public NavigationCompletedEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigationEvent.java b/core-lib/es6/src/main/java/def/dom/NavigationEvent.java new file mode 100644 index 00000000..d733acd7 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigationEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class NavigationEvent extends Event { + public java.lang.String uri; + public static NavigationEvent prototype; + public NavigationEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigationEventWithReferrer.java b/core-lib/es6/src/main/java/def/dom/NavigationEventWithReferrer.java new file mode 100644 index 00000000..52381d45 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigationEventWithReferrer.java @@ -0,0 +1,7 @@ +package def.dom; +public class NavigationEventWithReferrer extends NavigationEvent { + public java.lang.String referer; + public static NavigationEventWithReferrer prototype; + public NavigationEventWithReferrer(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Navigator.java b/core-lib/es6/src/main/java/def/dom/Navigator.java new file mode 100644 index 00000000..1539e226 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Navigator.java @@ -0,0 +1,54 @@ +package def.dom; + +@jsweet.lang.Extends({NavigatorID.class,NavigatorOnLine.class,NavigatorContentUtils.class,NavigatorStorageUtils.class,NavigatorGeolocation.class,MSNavigatorDoNotTrack.class,MSFileSaver.class}) +public class Navigator extends java.lang.Object { + public java.lang.String appCodeName; + public java.lang.String appMinorVersion; + public java.lang.String browserLanguage; + public double connectionSpeed; + public java.lang.Boolean cookieEnabled; + public java.lang.String cpuClass; + public java.lang.String language; + public double maxTouchPoints; + public MSMimeTypesCollection mimeTypes; + public java.lang.Boolean msManipulationViewsEnabled; + public double msMaxTouchPoints; + public java.lang.Boolean msPointerEnabled; + public MSPluginsCollection plugins; + public java.lang.Boolean pointerEnabled; + public java.lang.String systemLanguage; + public java.lang.String userLanguage; + public java.lang.Boolean webdriver; + native public Gamepad[] getGamepads(); + native public java.lang.Boolean javaEnabled(); + native public void msLaunchUri(java.lang.String uri, MSLaunchUriCallback successCallback, MSLaunchUriCallback noHandlerCallback); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static Navigator prototype; + public Navigator(){} + public java.lang.String appName; + public java.lang.String appVersion; + public java.lang.String platform; + public java.lang.String product; + public java.lang.String productSub; + public java.lang.String userAgent; + public java.lang.String vendor; + public java.lang.String vendorSub; + public java.lang.Boolean onLine; + public Geolocation geolocation; + native public java.lang.Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args); + native public java.lang.Boolean confirmWebWideTrackingException(ExceptionInformation args); + native public void removeSiteSpecificTrackingException(ExceptionInformation args); + native public void removeWebWideTrackingException(ExceptionInformation args); + native public void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args); + native public void storeWebWideTrackingException(StoreExceptionsInformation args); + native public java.lang.Boolean msSaveBlob(java.lang.Object blob, java.lang.String defaultName); + native public java.lang.Boolean msSaveOrOpenBlob(java.lang.Object blob, java.lang.String defaultName); + native public void msLaunchUri(java.lang.String uri, MSLaunchUriCallback successCallback); + native public void msLaunchUri(java.lang.String uri); + native public void addEventListener(java.lang.String type, EventListener listener); + native public java.lang.Boolean msSaveBlob(java.lang.Object blob); + native public java.lang.Boolean msSaveOrOpenBlob(java.lang.Object blob); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigatorContentUtils.java b/core-lib/es6/src/main/java/def/dom/NavigatorContentUtils.java new file mode 100644 index 00000000..e3fad03c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigatorContentUtils.java @@ -0,0 +1,8 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NavigatorContentUtils extends def.js.Object { +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigatorGeolocation.java b/core-lib/es6/src/main/java/def/dom/NavigatorGeolocation.java new file mode 100644 index 00000000..1bb2ac72 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigatorGeolocation.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NavigatorGeolocation extends def.js.Object { + public Geolocation geolocation; +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigatorID.java b/core-lib/es6/src/main/java/def/dom/NavigatorID.java new file mode 100644 index 00000000..257e5891 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigatorID.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NavigatorID extends def.js.Object { + public java.lang.String appName; + public java.lang.String appVersion; + public java.lang.String platform; + public java.lang.String product; + public java.lang.String productSub; + public java.lang.String userAgent; + public java.lang.String vendor; + public java.lang.String vendorSub; +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigatorOnLine.java b/core-lib/es6/src/main/java/def/dom/NavigatorOnLine.java new file mode 100644 index 00000000..64a40a7e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigatorOnLine.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NavigatorOnLine extends def.js.Object { + public java.lang.Boolean onLine; +} + diff --git a/core-lib/es6/src/main/java/def/dom/NavigatorStorageUtils.java b/core-lib/es6/src/main/java/def/dom/NavigatorStorageUtils.java new file mode 100644 index 00000000..e40da5ca --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NavigatorStorageUtils.java @@ -0,0 +1,8 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NavigatorStorageUtils extends def.js.Object { +} + diff --git a/core-lib/es6/src/main/java/def/dom/Node.java b/core-lib/es6/src/main/java/def/dom/Node.java new file mode 100644 index 00000000..f00612c7 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Node.java @@ -0,0 +1,58 @@ +package def.dom; + +public class Node extends EventTarget { + public NamedNodeMap attributes; + public java.lang.String baseURI; + public NodeList childNodes; + public Node firstChild; + public Node lastChild; + public java.lang.String localName; + public java.lang.String namespaceURI; + public Node nextSibling; + public java.lang.String nodeName; + public double nodeType; + public java.lang.String nodeValue; + public Document ownerDocument; + public HTMLElement parentElement; + public Node parentNode; + public java.lang.String prefix; + public Node previousSibling; + public java.lang.String textContent; + native public Node appendChild(Node newChild); + native public Node cloneNode(java.lang.Boolean deep); + native public double compareDocumentPosition(Node other); + native public java.lang.Boolean hasAttributes(); + native public java.lang.Boolean hasChildNodes(); + native public Node insertBefore(Node newChild, Node refChild); + native public java.lang.Boolean isDefaultNamespace(java.lang.String namespaceURI); + native public java.lang.Boolean isEqualNode(Node arg); + native public java.lang.Boolean isSameNode(Node other); + native public java.lang.String lookupNamespaceURI(java.lang.String prefix); + native public java.lang.String lookupPrefix(java.lang.String namespaceURI); + native public void normalize(); + native public Node removeChild(Node oldChild); + native public Node replaceChild(Node newChild, Node oldChild); + public double ATTRIBUTE_NODE; + public double CDATA_SECTION_NODE; + public double COMMENT_NODE; + public double DOCUMENT_FRAGMENT_NODE; + public double DOCUMENT_NODE; + public double DOCUMENT_POSITION_CONTAINED_BY; + public double DOCUMENT_POSITION_CONTAINS; + public double DOCUMENT_POSITION_DISCONNECTED; + public double DOCUMENT_POSITION_FOLLOWING; + public double DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC; + public double DOCUMENT_POSITION_PRECEDING; + public double DOCUMENT_TYPE_NODE; + public double ELEMENT_NODE; + public double ENTITY_NODE; + public double ENTITY_REFERENCE_NODE; + public double NOTATION_NODE; + public double PROCESSING_INSTRUCTION_NODE; + public double TEXT_NODE; + public static Node prototype; + public Node(){} + native public Node cloneNode(); + native public Node insertBefore(Node newChild); +} + diff --git a/core-lib/es6/src/main/java/def/dom/NodeFilter.java b/core-lib/es6/src/main/java/def/dom/NodeFilter.java new file mode 100644 index 00000000..580dc63b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NodeFilter.java @@ -0,0 +1,24 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NodeFilter extends def.js.Object { + public static double FILTER_ACCEPT; + public static double FILTER_REJECT; + public static double FILTER_SKIP; + public static double SHOW_ALL; + public static double SHOW_ATTRIBUTE; + public static double SHOW_CDATA_SECTION; + public static double SHOW_COMMENT; + public static double SHOW_DOCUMENT; + public static double SHOW_DOCUMENT_FRAGMENT; + public static double SHOW_DOCUMENT_TYPE; + public static double SHOW_ELEMENT; + public static double SHOW_ENTITY; + public static double SHOW_ENTITY_REFERENCE; + public static double SHOW_NOTATION; + public static double SHOW_PROCESSING_INSTRUCTION; + public static double SHOW_TEXT; +} + diff --git a/core-lib/es6/src/main/java/def/dom/NodeIterator.java b/core-lib/es6/src/main/java/def/dom/NodeIterator.java new file mode 100644 index 00000000..227d97f9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NodeIterator.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class NodeIterator extends def.js.Object { + public java.lang.Boolean expandEntityReferences; + public NodeFilter filter; + public Node root; + public double whatToShow; + native public void detach(); + native public Node nextNode(); + native public Node previousNode(); + public static NodeIterator prototype; + public NodeIterator(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/NodeList.java b/core-lib/es6/src/main/java/def/dom/NodeList.java new file mode 100644 index 00000000..0920d86f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NodeList.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class NodeList extends Iterable { + public double length; + native public Node item(double index); + native public Node $get(double index); + public static NodeList prototype; + public NodeList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/NodeListOf.java b/core-lib/es6/src/main/java/def/dom/NodeListOf.java new file mode 100644 index 00000000..f3cc5596 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NodeListOf.java @@ -0,0 +1,6 @@ +package def.dom; +@jsweet.lang.Interface +public abstract class NodeListOf extends NodeList { + public double length; +} + diff --git a/core-lib/es6/src/main/java/def/dom/NodeSelector.java b/core-lib/es6/src/main/java/def/dom/NodeSelector.java new file mode 100644 index 00000000..4e4a6176 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/NodeSelector.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class NodeSelector extends def.js.Object { + native public Element querySelector(java.lang.String selectors); + native public NodeList querySelectorAll(java.lang.String selectors); +} + diff --git a/core-lib/es6/src/main/java/def/dom/OES_element_index_uint.java b/core-lib/es6/src/main/java/def/dom/OES_element_index_uint.java new file mode 100644 index 00000000..42a681d8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OES_element_index_uint.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class OES_element_index_uint extends def.js.Object { + public static OES_element_index_uint prototype; + public OES_element_index_uint(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/OES_standard_derivatives.java b/core-lib/es6/src/main/java/def/dom/OES_standard_derivatives.java new file mode 100644 index 00000000..eaca2b7d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OES_standard_derivatives.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class OES_standard_derivatives extends def.js.Object { + public double FRAGMENT_SHADER_DERIVATIVE_HINT_OES; + public static OES_standard_derivatives prototype; + public OES_standard_derivatives(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/OES_texture_float.java b/core-lib/es6/src/main/java/def/dom/OES_texture_float.java new file mode 100644 index 00000000..27ed3cd4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OES_texture_float.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class OES_texture_float extends def.js.Object { + public static OES_texture_float prototype; + public OES_texture_float(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/OES_texture_float_linear.java b/core-lib/es6/src/main/java/def/dom/OES_texture_float_linear.java new file mode 100644 index 00000000..2514cd3a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OES_texture_float_linear.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class OES_texture_float_linear extends def.js.Object { + public static OES_texture_float_linear prototype; + public OES_texture_float_linear(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ObjectURLOptions.java b/core-lib/es6/src/main/java/def/dom/ObjectURLOptions.java new file mode 100644 index 00000000..c0ac9a3c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ObjectURLOptions.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class ObjectURLOptions extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean oneTimeOnly; +} + diff --git a/core-lib/es6/src/main/java/def/dom/OfflineAudioCompletionEvent.java b/core-lib/es6/src/main/java/def/dom/OfflineAudioCompletionEvent.java new file mode 100644 index 00000000..57c806e3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OfflineAudioCompletionEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class OfflineAudioCompletionEvent extends Event { + public AudioBuffer renderedBuffer; + public static OfflineAudioCompletionEvent prototype; + public OfflineAudioCompletionEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/OfflineAudioContext.java b/core-lib/es6/src/main/java/def/dom/OfflineAudioContext.java new file mode 100644 index 00000000..46589208 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OfflineAudioContext.java @@ -0,0 +1,19 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.complete; + +public class OfflineAudioContext extends AudioContext { + public java.util.function.Function oncomplete; + native public void startRendering(); + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static OfflineAudioContext prototype; + public OfflineAudioContext(double numberOfChannels, double length, double sampleRate){} + native public void addEventListener(def.js.StringTypes.complete type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + protected OfflineAudioContext(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Option.java b/core-lib/es6/src/main/java/def/dom/Option.java new file mode 100644 index 00000000..c58de494 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Option.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +/** This is an automatically generated object type (see the source definition). */ +@jsweet.lang.ObjectType +public class Option extends def.js.Object { + public Option(java.lang.String text, java.lang.String value, java.lang.Boolean defaultSelected, java.lang.Boolean selected){} + public Option(java.lang.String text, java.lang.String value, java.lang.Boolean defaultSelected){} + public Option(java.lang.String text, java.lang.String value){} + public Option(java.lang.String text){} + public Option(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/OscillatorNode.java b/core-lib/es6/src/main/java/def/dom/OscillatorNode.java new file mode 100644 index 00000000..5494e73c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/OscillatorNode.java @@ -0,0 +1,25 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.ended; + +public class OscillatorNode extends AudioNode { + public AudioParam detune; + public AudioParam frequency; + public java.util.function.Function onended; + public java.lang.String type; + native public void setPeriodicWave(PeriodicWave periodicWave); + native public void start(double when); + native public void stop(double when); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static OscillatorNode prototype; + public OscillatorNode(){} + native public void start(); + native public void stop(); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/PageTransitionEvent.java b/core-lib/es6/src/main/java/def/dom/PageTransitionEvent.java new file mode 100644 index 00000000..9ec9df5c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PageTransitionEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class PageTransitionEvent extends Event { + public java.lang.Boolean persisted; + public static PageTransitionEvent prototype; + public PageTransitionEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PannerNode.java b/core-lib/es6/src/main/java/def/dom/PannerNode.java new file mode 100644 index 00000000..f90d0dc6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PannerNode.java @@ -0,0 +1,18 @@ +package def.dom; + +public class PannerNode extends AudioNode { + public double coneInnerAngle; + public double coneOuterAngle; + public double coneOuterGain; + public java.lang.String distanceModel; + public double maxDistance; + public java.lang.String panningModel; + public double refDistance; + public double rolloffFactor; + native public void setOrientation(double x, double y, double z); + native public void setPosition(double x, double y, double z); + native public void setVelocity(double x, double y, double z); + public static PannerNode prototype; + public PannerNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerfWidgetExternal.java b/core-lib/es6/src/main/java/def/dom/PerfWidgetExternal.java new file mode 100644 index 00000000..3d0c714f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerfWidgetExternal.java @@ -0,0 +1,31 @@ +package def.dom; + +import def.js.Function; +import def.js.Object; + +public class PerfWidgetExternal extends def.js.Object { + public double activeNetworkRequestCount; + public double averageFrameTime; + public double averagePaintTime; + public java.lang.Boolean extraInformationEnabled; + public java.lang.Boolean independentRenderingEnabled; + public java.lang.String irDisablingContentString; + public java.lang.Boolean irStatusAvailable; + public double maxCpuSpeed; + public double paintRequestsPerSecond; + public double performanceCounter; + public double performanceCounterFrequency; + native public void addEventListener(java.lang.String eventType, Function callback); + native public double getMemoryUsage(); + native public double getProcessCpuUsage(); + native public java.lang.Object getRecentCpuUsage(double last); + native public java.lang.Object getRecentFrames(double last); + native public java.lang.Object getRecentMemoryUsage(double last); + native public java.lang.Object getRecentPaintRequests(double last); + native public void removeEventListener(java.lang.String eventType, Function callback); + native public void repositionWindow(double x, double y); + native public void resizeWindow(double width, double height); + public static PerfWidgetExternal prototype; + public PerfWidgetExternal(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Performance.java b/core-lib/es6/src/main/java/def/dom/Performance.java new file mode 100644 index 00000000..cff427ea --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Performance.java @@ -0,0 +1,31 @@ +package def.dom; + +import def.js.Object; + +public class Performance extends def.js.Object { + public PerformanceNavigation navigation; + public PerformanceTiming timing; + native public void clearMarks(java.lang.String markName); + native public void clearMeasures(java.lang.String measureName); + native public void clearResourceTimings(); + native public java.lang.Object getEntries(); + native public java.lang.Object getEntriesByName(java.lang.String name, java.lang.String entryType); + native public java.lang.Object getEntriesByType(java.lang.String entryType); + native public java.lang.Object getMarks(java.lang.String markName); + native public java.lang.Object getMeasures(java.lang.String measureName); + native public void mark(java.lang.String markName); + native public void measure(java.lang.String measureName, java.lang.String startMarkName, java.lang.String endMarkName); + native public double now(); + native public void setResourceTimingBufferSize(double maxSize); + native public java.lang.Object toJSON(); + public static Performance prototype; + public Performance(){} + native public void clearMarks(); + native public void clearMeasures(); + native public java.lang.Object getEntriesByName(java.lang.String name); + native public java.lang.Object getMarks(); + native public java.lang.Object getMeasures(); + native public void measure(java.lang.String measureName, java.lang.String startMarkName); + native public void measure(java.lang.String measureName); +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceEntry.java b/core-lib/es6/src/main/java/def/dom/PerformanceEntry.java new file mode 100644 index 00000000..e7244ba2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceEntry.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class PerformanceEntry extends def.js.Object { + public double duration; + public java.lang.String entryType; + public java.lang.String name; + public double startTime; + public static PerformanceEntry prototype; + public PerformanceEntry(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceMark.java b/core-lib/es6/src/main/java/def/dom/PerformanceMark.java new file mode 100644 index 00000000..a07184fb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceMark.java @@ -0,0 +1,6 @@ +package def.dom; +public class PerformanceMark extends PerformanceEntry { + public static PerformanceMark prototype; + public PerformanceMark(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceMeasure.java b/core-lib/es6/src/main/java/def/dom/PerformanceMeasure.java new file mode 100644 index 00000000..c98fff69 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceMeasure.java @@ -0,0 +1,6 @@ +package def.dom; +public class PerformanceMeasure extends PerformanceEntry { + public static PerformanceMeasure prototype; + public PerformanceMeasure(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceNavigation.java b/core-lib/es6/src/main/java/def/dom/PerformanceNavigation.java new file mode 100644 index 00000000..5be24635 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceNavigation.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class PerformanceNavigation extends def.js.Object { + public double redirectCount; + public double type; + native public java.lang.Object toJSON(); + public double TYPE_BACK_FORWARD; + public double TYPE_NAVIGATE; + public double TYPE_RELOAD; + public double TYPE_RESERVED; + public static PerformanceNavigation prototype; + public PerformanceNavigation(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceNavigationTiming.java b/core-lib/es6/src/main/java/def/dom/PerformanceNavigationTiming.java new file mode 100644 index 00000000..a6b4136e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceNavigationTiming.java @@ -0,0 +1,28 @@ +package def.dom; +public class PerformanceNavigationTiming extends PerformanceEntry { + public double connectEnd; + public double connectStart; + public double domComplete; + public double domContentLoadedEventEnd; + public double domContentLoadedEventStart; + public double domInteractive; + public double domLoading; + public double domainLookupEnd; + public double domainLookupStart; + public double fetchStart; + public double loadEventEnd; + public double loadEventStart; + public double navigationStart; + public double redirectCount; + public double redirectEnd; + public double redirectStart; + public double requestStart; + public double responseEnd; + public double responseStart; + public java.lang.String type; + public double unloadEventEnd; + public double unloadEventStart; + public static PerformanceNavigationTiming prototype; + public PerformanceNavigationTiming(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceResourceTiming.java b/core-lib/es6/src/main/java/def/dom/PerformanceResourceTiming.java new file mode 100644 index 00000000..bf157822 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceResourceTiming.java @@ -0,0 +1,17 @@ +package def.dom; +public class PerformanceResourceTiming extends PerformanceEntry { + public double connectEnd; + public double connectStart; + public double domainLookupEnd; + public double domainLookupStart; + public double fetchStart; + public java.lang.String initiatorType; + public double redirectEnd; + public double redirectStart; + public double requestStart; + public double responseEnd; + public double responseStart; + public static PerformanceResourceTiming prototype; + public PerformanceResourceTiming(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PerformanceTiming.java b/core-lib/es6/src/main/java/def/dom/PerformanceTiming.java new file mode 100644 index 00000000..50ea5030 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PerformanceTiming.java @@ -0,0 +1,31 @@ +package def.dom; + +import def.js.Object; + +public class PerformanceTiming extends def.js.Object { + public double connectEnd; + public double connectStart; + public double domComplete; + public double domContentLoadedEventEnd; + public double domContentLoadedEventStart; + public double domInteractive; + public double domLoading; + public double domainLookupEnd; + public double domainLookupStart; + public double fetchStart; + public double loadEventEnd; + public double loadEventStart; + public double msFirstPaint; + public double navigationStart; + public double redirectEnd; + public double redirectStart; + public double requestStart; + public double responseEnd; + public double responseStart; + public double unloadEventEnd; + public double unloadEventStart; + native public java.lang.Object toJSON(); + public static PerformanceTiming prototype; + public PerformanceTiming(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PeriodicWave.java b/core-lib/es6/src/main/java/def/dom/PeriodicWave.java new file mode 100644 index 00000000..513a2043 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PeriodicWave.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class PeriodicWave extends def.js.Object { + public static PeriodicWave prototype; + public PeriodicWave(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PermissionRequest.java b/core-lib/es6/src/main/java/def/dom/PermissionRequest.java new file mode 100644 index 00000000..9c909ae2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PermissionRequest.java @@ -0,0 +1,9 @@ +package def.dom; + +public class PermissionRequest extends DeferredPermissionRequest { + public java.lang.String state; + native public void defer(); + public static PermissionRequest prototype; + public PermissionRequest(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PermissionRequestedEvent.java b/core-lib/es6/src/main/java/def/dom/PermissionRequestedEvent.java new file mode 100644 index 00000000..6fa925ab --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PermissionRequestedEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class PermissionRequestedEvent extends Event { + public PermissionRequest permissionRequest; + public static PermissionRequestedEvent prototype; + public PermissionRequestedEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Plugin.java b/core-lib/es6/src/main/java/def/dom/Plugin.java new file mode 100644 index 00000000..b9d4fd62 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Plugin.java @@ -0,0 +1,21 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class Plugin extends Iterable { + public java.lang.String description; + public java.lang.String filename; + public double length; + public java.lang.String name; + public java.lang.String version; + native public MimeType item(double index); + native public MimeType namedItem(java.lang.String type); + native public MimeType $get(double index); + public static Plugin prototype; + public Plugin(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/PluginArray.java b/core-lib/es6/src/main/java/def/dom/PluginArray.java new file mode 100644 index 00000000..99a7c979 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PluginArray.java @@ -0,0 +1,19 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class PluginArray extends Iterable { + public double length; + native public Plugin item(double index); + native public Plugin namedItem(java.lang.String name); + native public void refresh(java.lang.Boolean reload); + native public Plugin $get(double index); + public static PluginArray prototype; + public PluginArray(){} + native public void refresh(); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/PointerEvent.java b/core-lib/es6/src/main/java/def/dom/PointerEvent.java new file mode 100644 index 00000000..5dc1055a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PointerEvent.java @@ -0,0 +1,24 @@ +package def.dom; + +public class PointerEvent extends MouseEvent { + public java.lang.Object currentPoint; + public double height; + public double hwTimestamp; + public java.lang.Object intermediatePoints; + public java.lang.Boolean isPrimary; + public double pointerId; + public java.lang.Object pointerType; + public double pressure; + public double rotation; + public double tiltX; + public double tiltY; + public double width; + native public void getCurrentPoint(Element element); + native public void getIntermediatePoints(Element element); + native public void initPointerEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, java.lang.Boolean ctrlKeyArg, java.lang.Boolean altKeyArg, java.lang.Boolean shiftKeyArg, java.lang.Boolean metaKeyArg, double buttonArg, EventTarget relatedTargetArg, double offsetXArg, double offsetYArg, double widthArg, double heightArg, double pressure, double rotation, double tiltX, double tiltY, double pointerIdArg, java.lang.Object pointerType, double hwTimestampArg, java.lang.Boolean isPrimary); + public static PointerEvent prototype; + public PointerEvent(java.lang.String typeArg, PointerEventInit eventInitDict){} + public PointerEvent(java.lang.String typeArg){} + protected PointerEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PointerEventInit.java b/core-lib/es6/src/main/java/def/dom/PointerEventInit.java new file mode 100644 index 00000000..6317336a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PointerEventInit.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class PointerEventInit extends MouseEventInit { + @jsweet.lang.Optional + public double pointerId; + @jsweet.lang.Optional + public double width; + @jsweet.lang.Optional + public double height; + @jsweet.lang.Optional + public double pressure; + @jsweet.lang.Optional + public double tiltX; + @jsweet.lang.Optional + public double tiltY; + @jsweet.lang.Optional + public java.lang.String pointerType; + @jsweet.lang.Optional + public java.lang.Boolean isPrimary; +} + diff --git a/core-lib/es6/src/main/java/def/dom/PopStateEvent.java b/core-lib/es6/src/main/java/def/dom/PopStateEvent.java new file mode 100644 index 00000000..c2e712a1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PopStateEvent.java @@ -0,0 +1,9 @@ +package def.dom; + +public class PopStateEvent extends Event { + public java.lang.Object state; + native public void initPopStateEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.Object stateArg); + public static PopStateEvent prototype; + public PopStateEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Position.java b/core-lib/es6/src/main/java/def/dom/Position.java new file mode 100644 index 00000000..36972765 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Position.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class Position extends def.js.Object { + public Coordinates coords; + public double timestamp; + public static Position prototype; + public Position(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PositionCallback.java b/core-lib/es6/src/main/java/def/dom/PositionCallback.java new file mode 100644 index 00000000..1fef4480 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PositionCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface PositionCallback { + public void apply(Position position); +} + diff --git a/core-lib/es6/src/main/java/def/dom/PositionError.java b/core-lib/es6/src/main/java/def/dom/PositionError.java new file mode 100644 index 00000000..7f192732 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PositionError.java @@ -0,0 +1,15 @@ +package def.dom; + +import def.js.Object; + +public class PositionError extends def.js.Object { + public double code; + public java.lang.String message; + native public java.lang.String toString(); + public double PERMISSION_DENIED; + public double POSITION_UNAVAILABLE; + public double TIMEOUT; + public static PositionError prototype; + public PositionError(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/PositionErrorCallback.java b/core-lib/es6/src/main/java/def/dom/PositionErrorCallback.java new file mode 100644 index 00000000..47ad523d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PositionErrorCallback.java @@ -0,0 +1,5 @@ +package def.dom; +public interface PositionErrorCallback { + public void apply(PositionError error); +} + diff --git a/core-lib/es6/src/main/java/def/dom/PositionOptions.java b/core-lib/es6/src/main/java/def/dom/PositionOptions.java new file mode 100644 index 00000000..475319a5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/PositionOptions.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class PositionOptions extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean enableHighAccuracy; + @jsweet.lang.Optional + public double timeout; + @jsweet.lang.Optional + public double maximumAge; +} + diff --git a/core-lib/es6/src/main/java/def/dom/ProcessingInstruction.java b/core-lib/es6/src/main/java/def/dom/ProcessingInstruction.java new file mode 100644 index 00000000..92ae5f05 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ProcessingInstruction.java @@ -0,0 +1,8 @@ +package def.dom; + +public class ProcessingInstruction extends CharacterData { + public java.lang.String target; + public static ProcessingInstruction prototype; + public ProcessingInstruction(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ProgressEvent.java b/core-lib/es6/src/main/java/def/dom/ProgressEvent.java new file mode 100644 index 00000000..99b86d78 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ProgressEvent.java @@ -0,0 +1,11 @@ +package def.dom; + +public class ProgressEvent extends Event { + public java.lang.Boolean lengthComputable; + public double loaded; + public double total; + native public void initProgressEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.Boolean lengthComputableArg, double loadedArg, double totalArg); + public static ProgressEvent prototype; + public ProgressEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/RandomSource.java b/core-lib/es6/src/main/java/def/dom/RandomSource.java new file mode 100644 index 00000000..1f032ffa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/RandomSource.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.ArrayBufferView; +import def.js.Object; + +@jsweet.lang.Interface +public abstract class RandomSource extends def.js.Object { + native public ArrayBufferView getRandomValues(ArrayBufferView array); +} + diff --git a/core-lib/es6/src/main/java/def/dom/Range.java b/core-lib/es6/src/main/java/def/dom/Range.java new file mode 100644 index 00000000..8b2ffbc2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Range.java @@ -0,0 +1,41 @@ +package def.dom; + +import def.js.Object; + +public class Range extends def.js.Object { + public java.lang.Boolean collapsed; + public Node commonAncestorContainer; + public Node endContainer; + public double endOffset; + public Node startContainer; + public double startOffset; + native public DocumentFragment cloneContents(); + native public Range cloneRange(); + native public void collapse(java.lang.Boolean toStart); + native public double compareBoundaryPoints(double how, Range sourceRange); + native public DocumentFragment createContextualFragment(java.lang.String fragment); + native public void deleteContents(); + native public void detach(); + native public java.lang.Boolean expand(java.lang.String Unit); + native public DocumentFragment extractContents(); + native public ClientRect getBoundingClientRect(); + native public ClientRectList getClientRects(); + native public void insertNode(Node newNode); + native public void selectNode(Node refNode); + native public void selectNodeContents(Node refNode); + native public void setEnd(Node refNode, double offset); + native public void setEndAfter(Node refNode); + native public void setEndBefore(Node refNode); + native public void setStart(Node refNode, double offset); + native public void setStartAfter(Node refNode); + native public void setStartBefore(Node refNode); + native public void surroundContents(Node newParent); + native public java.lang.String toString(); + public double END_TO_END; + public double END_TO_START; + public double START_TO_END; + public double START_TO_START; + public static Range prototype; + public Range(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAElement.java b/core-lib/es6/src/main/java/def/dom/SVGAElement.java new file mode 100644 index 00000000..f2383295 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAElement.java @@ -0,0 +1,24 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGURIReference.class}) +public class SVGAElement extends SVGElement { + public SVGAnimatedString target; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGAElement prototype; + public SVGAElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedString href; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAngle.java b/core-lib/es6/src/main/java/def/dom/SVGAngle.java new file mode 100644 index 00000000..23a73796 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAngle.java @@ -0,0 +1,20 @@ +package def.dom; + +import def.js.Object; + +public class SVGAngle extends def.js.Object { + public double unitType; + public double value; + public java.lang.String valueAsString; + public double valueInSpecifiedUnits; + native public void convertToSpecifiedUnits(double unitType); + native public void newValueSpecifiedUnits(double unitType, double valueInSpecifiedUnits); + public double SVG_ANGLETYPE_DEG; + public double SVG_ANGLETYPE_GRAD; + public double SVG_ANGLETYPE_RAD; + public double SVG_ANGLETYPE_UNKNOWN; + public double SVG_ANGLETYPE_UNSPECIFIED; + public static SVGAngle prototype; + public SVGAngle(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedAngle.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedAngle.java new file mode 100644 index 00000000..01b7cf0a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedAngle.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedAngle extends def.js.Object { + public SVGAngle animVal; + public SVGAngle baseVal; + public static SVGAnimatedAngle prototype; + public SVGAnimatedAngle(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedBoolean.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedBoolean.java new file mode 100644 index 00000000..22cbc087 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedBoolean.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedBoolean extends def.js.Object { + public java.lang.Boolean animVal; + public java.lang.Boolean baseVal; + public static SVGAnimatedBoolean prototype; + public SVGAnimatedBoolean(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedEnumeration.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedEnumeration.java new file mode 100644 index 00000000..1c346971 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedEnumeration.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedEnumeration extends def.js.Object { + public double animVal; + public double baseVal; + public static SVGAnimatedEnumeration prototype; + public SVGAnimatedEnumeration(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedInteger.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedInteger.java new file mode 100644 index 00000000..c70b51c0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedInteger.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedInteger extends def.js.Object { + public double animVal; + public double baseVal; + public static SVGAnimatedInteger prototype; + public SVGAnimatedInteger(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedLength.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedLength.java new file mode 100644 index 00000000..a3e0a684 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedLength.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedLength extends def.js.Object { + public SVGLength animVal; + public SVGLength baseVal; + public static SVGAnimatedLength prototype; + public SVGAnimatedLength(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedLengthList.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedLengthList.java new file mode 100644 index 00000000..1095150c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedLengthList.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedLengthList extends def.js.Object { + public SVGLengthList animVal; + public SVGLengthList baseVal; + public static SVGAnimatedLengthList prototype; + public SVGAnimatedLengthList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedNumber.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedNumber.java new file mode 100644 index 00000000..d949f308 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedNumber.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedNumber extends def.js.Object { + public double animVal; + public double baseVal; + public static SVGAnimatedNumber prototype; + public SVGAnimatedNumber(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedNumberList.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedNumberList.java new file mode 100644 index 00000000..d413be3d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedNumberList.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedNumberList extends def.js.Object { + public SVGNumberList animVal; + public SVGNumberList baseVal; + public static SVGAnimatedNumberList prototype; + public SVGAnimatedNumberList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedPathData.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedPathData.java new file mode 100644 index 00000000..e1958d28 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedPathData.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGAnimatedPathData extends def.js.Object { + public SVGPathSegList pathSegList; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedPoints.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedPoints.java new file mode 100644 index 00000000..9b9df35b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedPoints.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGAnimatedPoints extends def.js.Object { + public SVGPointList animatedPoints; + public SVGPointList points; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedPreserveAspectRatio.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedPreserveAspectRatio.java new file mode 100644 index 00000000..2075a33c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedPreserveAspectRatio.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedPreserveAspectRatio extends def.js.Object { + public SVGPreserveAspectRatio animVal; + public SVGPreserveAspectRatio baseVal; + public static SVGAnimatedPreserveAspectRatio prototype; + public SVGAnimatedPreserveAspectRatio(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedRect.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedRect.java new file mode 100644 index 00000000..a45b1d34 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedRect.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedRect extends def.js.Object { + public SVGRect animVal; + public SVGRect baseVal; + public static SVGAnimatedRect prototype; + public SVGAnimatedRect(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedString.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedString.java new file mode 100644 index 00000000..602848f0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedString.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedString extends def.js.Object { + public java.lang.String animVal; + public java.lang.String baseVal; + public static SVGAnimatedString prototype; + public SVGAnimatedString(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGAnimatedTransformList.java b/core-lib/es6/src/main/java/def/dom/SVGAnimatedTransformList.java new file mode 100644 index 00000000..e2c5b0a4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGAnimatedTransformList.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGAnimatedTransformList extends def.js.Object { + public SVGTransformList animVal; + public SVGTransformList baseVal; + public static SVGAnimatedTransformList prototype; + public SVGAnimatedTransformList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGCircleElement.java b/core-lib/es6/src/main/java/def/dom/SVGCircleElement.java new file mode 100644 index 00000000..640552ad --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGCircleElement.java @@ -0,0 +1,25 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGCircleElement extends SVGElement { + public SVGAnimatedLength cx; + public SVGAnimatedLength cy; + public SVGAnimatedLength r; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGCircleElement prototype; + public SVGCircleElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGClipPathElement.java b/core-lib/es6/src/main/java/def/dom/SVGClipPathElement.java new file mode 100644 index 00000000..ab25b02c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGClipPathElement.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGUnitTypes.class}) +public class SVGClipPathElement extends SVGElement { + public SVGAnimatedEnumeration clipPathUnits; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGClipPathElement prototype; + public SVGClipPathElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public static double SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; + public static double SVG_UNIT_TYPE_UNKNOWN; + public static double SVG_UNIT_TYPE_USERSPACEONUSE; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGComponentTransferFunctionElement.java b/core-lib/es6/src/main/java/def/dom/SVGComponentTransferFunctionElement.java new file mode 100644 index 00000000..64b0840a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGComponentTransferFunctionElement.java @@ -0,0 +1,19 @@ +package def.dom; +public class SVGComponentTransferFunctionElement extends SVGElement { + public SVGAnimatedNumber amplitude; + public SVGAnimatedNumber exponent; + public SVGAnimatedNumber intercept; + public SVGAnimatedNumber offset; + public SVGAnimatedNumber slope; + public SVGAnimatedNumberList tableValues; + public SVGAnimatedEnumeration type; + public double SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE; + public double SVG_FECOMPONENTTRANSFER_TYPE_GAMMA; + public double SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY; + public double SVG_FECOMPONENTTRANSFER_TYPE_LINEAR; + public double SVG_FECOMPONENTTRANSFER_TYPE_TABLE; + public double SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN; + public static SVGComponentTransferFunctionElement prototype; + public SVGComponentTransferFunctionElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGDefsElement.java b/core-lib/es6/src/main/java/def/dom/SVGDefsElement.java new file mode 100644 index 00000000..f9f50c39 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGDefsElement.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGDefsElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGDefsElement prototype; + public SVGDefsElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGDescElement.java b/core-lib/es6/src/main/java/def/dom/SVGDescElement.java new file mode 100644 index 00000000..294bea2b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGDescElement.java @@ -0,0 +1,16 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGLangSpace.class}) +public class SVGDescElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGDescElement prototype; + public SVGDescElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public java.lang.String xmllang; + public java.lang.String xmlspace; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGElement.java b/core-lib/es6/src/main/java/def/dom/SVGElement.java new file mode 100644 index 00000000..a6855fa9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGElement.java @@ -0,0 +1,165 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.MSGestureChange; +import def.js.StringTypes.MSGestureDoubleTap; +import def.js.StringTypes.MSGestureEnd; +import def.js.StringTypes.MSGestureHold; +import def.js.StringTypes.MSGestureStart; +import def.js.StringTypes.MSGestureTap; +import def.js.StringTypes.MSGotPointerCapture; +import def.js.StringTypes.MSInertiaStart; +import def.js.StringTypes.MSLostPointerCapture; +import def.js.StringTypes.MSPointerCancel; +import def.js.StringTypes.MSPointerDown; +import def.js.StringTypes.MSPointerEnter; +import def.js.StringTypes.MSPointerLeave; +import def.js.StringTypes.MSPointerMove; +import def.js.StringTypes.MSPointerOut; +import def.js.StringTypes.MSPointerOver; +import def.js.StringTypes.MSPointerUp; +import def.js.StringTypes.ariarequest; +import def.js.StringTypes.click; +import def.js.StringTypes.command; +import def.js.StringTypes.dblclick; +import def.js.StringTypes.focusin; +import def.js.StringTypes.focusout; +import def.js.StringTypes.gotpointercapture; +import def.js.StringTypes.load; +import def.js.StringTypes.lostpointercapture; +import def.js.StringTypes.mousedown; +import def.js.StringTypes.mousemove; +import def.js.StringTypes.mouseout; +import def.js.StringTypes.mouseover; +import def.js.StringTypes.mouseup; +import def.js.StringTypes.pointercancel; +import def.js.StringTypes.pointerdown; +import def.js.StringTypes.pointerenter; +import def.js.StringTypes.pointerleave; +import def.js.StringTypes.pointermove; +import def.js.StringTypes.pointerout; +import def.js.StringTypes.pointerover; +import def.js.StringTypes.pointerup; +import def.js.StringTypes.touchcancel; +import def.js.StringTypes.touchend; +import def.js.StringTypes.touchmove; +import def.js.StringTypes.touchstart; +import def.js.StringTypes.webkitfullscreenchange; +import def.js.StringTypes.webkitfullscreenerror; +import def.js.StringTypes.wheel; + +public class SVGElement extends Element { + public java.lang.String id; + public java.util.function.Function onclick; + public java.util.function.Function ondblclick; + public java.util.function.Function onfocusin; + public java.util.function.Function onfocusout; + public java.util.function.Function onload; + public java.util.function.Function onmousedown; + public java.util.function.Function onmousemove; + public java.util.function.Function onmouseout; + public java.util.function.Function onmouseover; + public java.util.function.Function onmouseup; + public SVGSVGElement ownerSVGElement; + public SVGElement viewportElement; + public java.lang.String xmlbase; + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focusin type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focusout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGElement prototype; + public SVGElement(){} + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focusin type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focusout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGElementInstance.java b/core-lib/es6/src/main/java/def/dom/SVGElementInstance.java new file mode 100644 index 00000000..9b392542 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGElementInstance.java @@ -0,0 +1,15 @@ +package def.dom; + +public class SVGElementInstance extends EventTarget { + public SVGElementInstanceList childNodes; + public SVGElement correspondingElement; + public SVGUseElement correspondingUseElement; + public SVGElementInstance firstChild; + public SVGElementInstance lastChild; + public SVGElementInstance nextSibling; + public SVGElementInstance parentNode; + public SVGElementInstance previousSibling; + public static SVGElementInstance prototype; + public SVGElementInstance(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGElementInstanceList.java b/core-lib/es6/src/main/java/def/dom/SVGElementInstanceList.java new file mode 100644 index 00000000..0bfc9584 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGElementInstanceList.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class SVGElementInstanceList extends def.js.Object { + public double length; + native public SVGElementInstance item(double index); + public static SVGElementInstanceList prototype; + public SVGElementInstanceList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGEllipseElement.java b/core-lib/es6/src/main/java/def/dom/SVGEllipseElement.java new file mode 100644 index 00000000..a116cc84 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGEllipseElement.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGEllipseElement extends SVGElement { + public SVGAnimatedLength cx; + public SVGAnimatedLength cy; + public SVGAnimatedLength rx; + public SVGAnimatedLength ry; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGEllipseElement prototype; + public SVGEllipseElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGExternalResourcesRequired.java b/core-lib/es6/src/main/java/def/dom/SVGExternalResourcesRequired.java new file mode 100644 index 00000000..22089565 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGExternalResourcesRequired.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGExternalResourcesRequired extends def.js.Object { + public SVGAnimatedBoolean externalResourcesRequired; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEBlendElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEBlendElement.java new file mode 100644 index 00000000..7b843fd0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEBlendElement.java @@ -0,0 +1,37 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEBlendElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedString in2; + public SVGAnimatedEnumeration mode; + public double SVG_FEBLEND_MODE_COLOR; + public double SVG_FEBLEND_MODE_COLOR_BURN; + public double SVG_FEBLEND_MODE_COLOR_DODGE; + public double SVG_FEBLEND_MODE_DARKEN; + public double SVG_FEBLEND_MODE_DIFFERENCE; + public double SVG_FEBLEND_MODE_EXCLUSION; + public double SVG_FEBLEND_MODE_HARD_LIGHT; + public double SVG_FEBLEND_MODE_HUE; + public double SVG_FEBLEND_MODE_LIGHTEN; + public double SVG_FEBLEND_MODE_LUMINOSITY; + public double SVG_FEBLEND_MODE_MULTIPLY; + public double SVG_FEBLEND_MODE_NORMAL; + public double SVG_FEBLEND_MODE_OVERLAY; + public double SVG_FEBLEND_MODE_SATURATION; + public double SVG_FEBLEND_MODE_SCREEN; + public double SVG_FEBLEND_MODE_SOFT_LIGHT; + public double SVG_FEBLEND_MODE_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEBlendElement prototype; + public SVGFEBlendElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEColorMatrixElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEColorMatrixElement.java new file mode 100644 index 00000000..b82b2b73 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEColorMatrixElement.java @@ -0,0 +1,25 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEColorMatrixElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedEnumeration type; + public SVGAnimatedNumberList values; + public double SVG_FECOLORMATRIX_TYPE_HUEROTATE; + public double SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA; + public double SVG_FECOLORMATRIX_TYPE_MATRIX; + public double SVG_FECOLORMATRIX_TYPE_SATURATE; + public double SVG_FECOLORMATRIX_TYPE_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEColorMatrixElement prototype; + public SVGFEColorMatrixElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEComponentTransferElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEComponentTransferElement.java new file mode 100644 index 00000000..509c5c75 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEComponentTransferElement.java @@ -0,0 +1,18 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEComponentTransferElement extends SVGElement { + public SVGAnimatedString in1; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEComponentTransferElement prototype; + public SVGFEComponentTransferElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFECompositeElement.java b/core-lib/es6/src/main/java/def/dom/SVGFECompositeElement.java new file mode 100644 index 00000000..ad7c3439 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFECompositeElement.java @@ -0,0 +1,31 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFECompositeElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedString in2; + public SVGAnimatedNumber k1; + public SVGAnimatedNumber k2; + public SVGAnimatedNumber k3; + public SVGAnimatedNumber k4; + public SVGAnimatedEnumeration operator; + public double SVG_FECOMPOSITE_OPERATOR_ARITHMETIC; + public double SVG_FECOMPOSITE_OPERATOR_ATOP; + public double SVG_FECOMPOSITE_OPERATOR_IN; + public double SVG_FECOMPOSITE_OPERATOR_OUT; + public double SVG_FECOMPOSITE_OPERATOR_OVER; + public double SVG_FECOMPOSITE_OPERATOR_UNKNOWN; + public double SVG_FECOMPOSITE_OPERATOR_XOR; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFECompositeElement prototype; + public SVGFECompositeElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEConvolveMatrixElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEConvolveMatrixElement.java new file mode 100644 index 00000000..43b51ce6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEConvolveMatrixElement.java @@ -0,0 +1,33 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEConvolveMatrixElement extends SVGElement { + public SVGAnimatedNumber bias; + public SVGAnimatedNumber divisor; + public SVGAnimatedEnumeration edgeMode; + public SVGAnimatedString in1; + public SVGAnimatedNumberList kernelMatrix; + public SVGAnimatedNumber kernelUnitLengthX; + public SVGAnimatedNumber kernelUnitLengthY; + public SVGAnimatedInteger orderX; + public SVGAnimatedInteger orderY; + public SVGAnimatedBoolean preserveAlpha; + public SVGAnimatedInteger targetX; + public SVGAnimatedInteger targetY; + public double SVG_EDGEMODE_DUPLICATE; + public double SVG_EDGEMODE_NONE; + public double SVG_EDGEMODE_UNKNOWN; + public double SVG_EDGEMODE_WRAP; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEConvolveMatrixElement prototype; + public SVGFEConvolveMatrixElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEDiffuseLightingElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEDiffuseLightingElement.java new file mode 100644 index 00000000..2fcd2efa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEDiffuseLightingElement.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEDiffuseLightingElement extends SVGElement { + public SVGAnimatedNumber diffuseConstant; + public SVGAnimatedString in1; + public SVGAnimatedNumber kernelUnitLengthX; + public SVGAnimatedNumber kernelUnitLengthY; + public SVGAnimatedNumber surfaceScale; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEDiffuseLightingElement prototype; + public SVGFEDiffuseLightingElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEDisplacementMapElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEDisplacementMapElement.java new file mode 100644 index 00000000..943d5785 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEDisplacementMapElement.java @@ -0,0 +1,27 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEDisplacementMapElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedString in2; + public SVGAnimatedNumber scale; + public SVGAnimatedEnumeration xChannelSelector; + public SVGAnimatedEnumeration yChannelSelector; + public double SVG_CHANNEL_A; + public double SVG_CHANNEL_B; + public double SVG_CHANNEL_G; + public double SVG_CHANNEL_R; + public double SVG_CHANNEL_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEDisplacementMapElement prototype; + public SVGFEDisplacementMapElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEDistantLightElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEDistantLightElement.java new file mode 100644 index 00000000..2968186f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEDistantLightElement.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGFEDistantLightElement extends SVGElement { + public SVGAnimatedNumber azimuth; + public SVGAnimatedNumber elevation; + public static SVGFEDistantLightElement prototype; + public SVGFEDistantLightElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEFloodElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEFloodElement.java new file mode 100644 index 00000000..7ebec325 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEFloodElement.java @@ -0,0 +1,17 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEFloodElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEFloodElement prototype; + public SVGFEFloodElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEFuncAElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEFuncAElement.java new file mode 100644 index 00000000..083038cc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEFuncAElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGFEFuncAElement extends SVGComponentTransferFunctionElement { + public static SVGFEFuncAElement prototype; + public SVGFEFuncAElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEFuncBElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEFuncBElement.java new file mode 100644 index 00000000..c4cc8608 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEFuncBElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGFEFuncBElement extends SVGComponentTransferFunctionElement { + public static SVGFEFuncBElement prototype; + public SVGFEFuncBElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEFuncGElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEFuncGElement.java new file mode 100644 index 00000000..745f1304 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEFuncGElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGFEFuncGElement extends SVGComponentTransferFunctionElement { + public static SVGFEFuncGElement prototype; + public SVGFEFuncGElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEFuncRElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEFuncRElement.java new file mode 100644 index 00000000..c12ff255 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEFuncRElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGFEFuncRElement extends SVGComponentTransferFunctionElement { + public static SVGFEFuncRElement prototype; + public SVGFEFuncRElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEGaussianBlurElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEGaussianBlurElement.java new file mode 100644 index 00000000..ff34c070 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEGaussianBlurElement.java @@ -0,0 +1,21 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEGaussianBlurElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedNumber stdDeviationX; + public SVGAnimatedNumber stdDeviationY; + native public void setStdDeviation(double stdDeviationX, double stdDeviationY); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEGaussianBlurElement prototype; + public SVGFEGaussianBlurElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEImageElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEImageElement.java new file mode 100644 index 00000000..951eeec2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEImageElement.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class,SVGLangSpace.class,SVGURIReference.class,SVGExternalResourcesRequired.class}) +public class SVGFEImageElement extends SVGElement { + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEImageElement prototype; + public SVGFEImageElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedString href; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEMergeElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEMergeElement.java new file mode 100644 index 00000000..ef5b1507 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEMergeElement.java @@ -0,0 +1,17 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEMergeElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEMergeElement prototype; + public SVGFEMergeElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEMergeNodeElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEMergeNodeElement.java new file mode 100644 index 00000000..ffeec035 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEMergeNodeElement.java @@ -0,0 +1,7 @@ +package def.dom; +public class SVGFEMergeNodeElement extends SVGElement { + public SVGAnimatedString in1; + public static SVGFEMergeNodeElement prototype; + public SVGFEMergeNodeElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEMorphologyElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEMorphologyElement.java new file mode 100644 index 00000000..28751460 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEMorphologyElement.java @@ -0,0 +1,24 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEMorphologyElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedEnumeration operator; + public SVGAnimatedNumber radiusX; + public SVGAnimatedNumber radiusY; + public double SVG_MORPHOLOGY_OPERATOR_DILATE; + public double SVG_MORPHOLOGY_OPERATOR_ERODE; + public double SVG_MORPHOLOGY_OPERATOR_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEMorphologyElement prototype; + public SVGFEMorphologyElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEOffsetElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEOffsetElement.java new file mode 100644 index 00000000..6bffc0a0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEOffsetElement.java @@ -0,0 +1,20 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFEOffsetElement extends SVGElement { + public SVGAnimatedNumber dx; + public SVGAnimatedNumber dy; + public SVGAnimatedString in1; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFEOffsetElement prototype; + public SVGFEOffsetElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFEPointLightElement.java b/core-lib/es6/src/main/java/def/dom/SVGFEPointLightElement.java new file mode 100644 index 00000000..7fda16d6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFEPointLightElement.java @@ -0,0 +1,9 @@ +package def.dom; +public class SVGFEPointLightElement extends SVGElement { + public SVGAnimatedNumber x; + public SVGAnimatedNumber y; + public SVGAnimatedNumber z; + public static SVGFEPointLightElement prototype; + public SVGFEPointLightElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFESpecularLightingElement.java b/core-lib/es6/src/main/java/def/dom/SVGFESpecularLightingElement.java new file mode 100644 index 00000000..ccade74b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFESpecularLightingElement.java @@ -0,0 +1,23 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFESpecularLightingElement extends SVGElement { + public SVGAnimatedString in1; + public SVGAnimatedNumber kernelUnitLengthX; + public SVGAnimatedNumber kernelUnitLengthY; + public SVGAnimatedNumber specularConstant; + public SVGAnimatedNumber specularExponent; + public SVGAnimatedNumber surfaceScale; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFESpecularLightingElement prototype; + public SVGFESpecularLightingElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFESpotLightElement.java b/core-lib/es6/src/main/java/def/dom/SVGFESpotLightElement.java new file mode 100644 index 00000000..dd8890df --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFESpotLightElement.java @@ -0,0 +1,14 @@ +package def.dom; +public class SVGFESpotLightElement extends SVGElement { + public SVGAnimatedNumber limitingConeAngle; + public SVGAnimatedNumber pointsAtX; + public SVGAnimatedNumber pointsAtY; + public SVGAnimatedNumber pointsAtZ; + public SVGAnimatedNumber specularExponent; + public SVGAnimatedNumber x; + public SVGAnimatedNumber y; + public SVGAnimatedNumber z; + public static SVGFESpotLightElement prototype; + public SVGFESpotLightElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFETileElement.java b/core-lib/es6/src/main/java/def/dom/SVGFETileElement.java new file mode 100644 index 00000000..fae5e522 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFETileElement.java @@ -0,0 +1,18 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFETileElement extends SVGElement { + public SVGAnimatedString in1; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFETileElement prototype; + public SVGFETileElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFETurbulenceElement.java b/core-lib/es6/src/main/java/def/dom/SVGFETurbulenceElement.java new file mode 100644 index 00000000..f230d7c8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFETurbulenceElement.java @@ -0,0 +1,29 @@ +package def.dom; + +@jsweet.lang.Extends({SVGFilterPrimitiveStandardAttributes.class}) +public class SVGFETurbulenceElement extends SVGElement { + public SVGAnimatedNumber baseFrequencyX; + public SVGAnimatedNumber baseFrequencyY; + public SVGAnimatedInteger numOctaves; + public SVGAnimatedNumber seed; + public SVGAnimatedEnumeration stitchTiles; + public SVGAnimatedEnumeration type; + public double SVG_STITCHTYPE_NOSTITCH; + public double SVG_STITCHTYPE_STITCH; + public double SVG_STITCHTYPE_UNKNOWN; + public double SVG_TURBULENCE_TYPE_FRACTALNOISE; + public double SVG_TURBULENCE_TYPE_TURBULENCE; + public double SVG_TURBULENCE_TYPE_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFETurbulenceElement prototype; + public SVGFETurbulenceElement(){} + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFilterElement.java b/core-lib/es6/src/main/java/def/dom/SVGFilterElement.java new file mode 100644 index 00000000..2ea4dace --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFilterElement.java @@ -0,0 +1,30 @@ +package def.dom; + +@jsweet.lang.Extends({SVGUnitTypes.class,SVGStylable.class,SVGLangSpace.class,SVGURIReference.class,SVGExternalResourcesRequired.class}) +public class SVGFilterElement extends SVGElement { + public SVGAnimatedInteger filterResX; + public SVGAnimatedInteger filterResY; + public SVGAnimatedEnumeration filterUnits; + public SVGAnimatedLength height; + public SVGAnimatedEnumeration primitiveUnits; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void setFilterRes(double filterResX, double filterResY); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGFilterElement prototype; + public SVGFilterElement(){} + public static double SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; + public static double SVG_UNIT_TYPE_UNKNOWN; + public static double SVG_UNIT_TYPE_USERSPACEONUSE; + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedString href; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFilterPrimitiveStandardAttributes.java b/core-lib/es6/src/main/java/def/dom/SVGFilterPrimitiveStandardAttributes.java new file mode 100644 index 00000000..30aa2d44 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFilterPrimitiveStandardAttributes.java @@ -0,0 +1,10 @@ +package def.dom; +@jsweet.lang.Interface +public abstract class SVGFilterPrimitiveStandardAttributes extends SVGStylable { + public SVGAnimatedLength height; + public SVGAnimatedString result; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGFitToViewBox.java b/core-lib/es6/src/main/java/def/dom/SVGFitToViewBox.java new file mode 100644 index 00000000..7f7e6080 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGFitToViewBox.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGFitToViewBox extends def.js.Object { + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedRect viewBox; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGForeignObjectElement.java b/core-lib/es6/src/main/java/def/dom/SVGForeignObjectElement.java new file mode 100644 index 00000000..e1affe9a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGForeignObjectElement.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGForeignObjectElement extends SVGElement { + public SVGAnimatedLength height; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGForeignObjectElement prototype; + public SVGForeignObjectElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGGElement.java b/core-lib/es6/src/main/java/def/dom/SVGGElement.java new file mode 100644 index 00000000..86615049 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGGElement.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGGElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGGElement prototype; + public SVGGElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGGradientElement.java b/core-lib/es6/src/main/java/def/dom/SVGGradientElement.java new file mode 100644 index 00000000..dff17520 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGGradientElement.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGExternalResourcesRequired.class,SVGURIReference.class,SVGUnitTypes.class}) +public class SVGGradientElement extends SVGElement { + public SVGAnimatedTransformList gradientTransform; + public SVGAnimatedEnumeration gradientUnits; + public SVGAnimatedEnumeration spreadMethod; + public double SVG_SPREADMETHOD_PAD; + public double SVG_SPREADMETHOD_REFLECT; + public double SVG_SPREADMETHOD_REPEAT; + public double SVG_SPREADMETHOD_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGGradientElement prototype; + public SVGGradientElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedString href; + public static double SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; + public static double SVG_UNIT_TYPE_UNKNOWN; + public static double SVG_UNIT_TYPE_USERSPACEONUSE; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGImageElement.java b/core-lib/es6/src/main/java/def/dom/SVGImageElement.java new file mode 100644 index 00000000..901e2a77 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGImageElement.java @@ -0,0 +1,28 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGURIReference.class}) +public class SVGImageElement extends SVGElement { + public SVGAnimatedLength height; + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGImageElement prototype; + public SVGImageElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedString href; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGLangSpace.java b/core-lib/es6/src/main/java/def/dom/SVGLangSpace.java new file mode 100644 index 00000000..d655ec9c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGLangSpace.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGLangSpace extends def.js.Object { + public java.lang.String xmllang; + public java.lang.String xmlspace; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGLength.java b/core-lib/es6/src/main/java/def/dom/SVGLength.java new file mode 100644 index 00000000..bdb658fa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGLength.java @@ -0,0 +1,26 @@ +package def.dom; + +import def.js.Object; + +public class SVGLength extends def.js.Object { + public double unitType; + public double value; + public java.lang.String valueAsString; + public double valueInSpecifiedUnits; + native public void convertToSpecifiedUnits(double unitType); + native public void newValueSpecifiedUnits(double unitType, double valueInSpecifiedUnits); + public double SVG_LENGTHTYPE_CM; + public double SVG_LENGTHTYPE_EMS; + public double SVG_LENGTHTYPE_EXS; + public double SVG_LENGTHTYPE_IN; + public double SVG_LENGTHTYPE_MM; + public double SVG_LENGTHTYPE_NUMBER; + public double SVG_LENGTHTYPE_PC; + public double SVG_LENGTHTYPE_PERCENTAGE; + public double SVG_LENGTHTYPE_PT; + public double SVG_LENGTHTYPE_PX; + public double SVG_LENGTHTYPE_UNKNOWN; + public static SVGLength prototype; + public SVGLength(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGLengthList.java b/core-lib/es6/src/main/java/def/dom/SVGLengthList.java new file mode 100644 index 00000000..47b268ce --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGLengthList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class SVGLengthList extends def.js.Object { + public double numberOfItems; + native public SVGLength appendItem(SVGLength newItem); + native public void clear(); + native public SVGLength getItem(double index); + native public SVGLength initialize(SVGLength newItem); + native public SVGLength insertItemBefore(SVGLength newItem, double index); + native public SVGLength removeItem(double index); + native public SVGLength replaceItem(SVGLength newItem, double index); + public static SVGLengthList prototype; + public SVGLengthList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGLineElement.java b/core-lib/es6/src/main/java/def/dom/SVGLineElement.java new file mode 100644 index 00000000..8368bda9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGLineElement.java @@ -0,0 +1,26 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGLineElement extends SVGElement { + public SVGAnimatedLength x1; + public SVGAnimatedLength x2; + public SVGAnimatedLength y1; + public SVGAnimatedLength y2; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGLineElement prototype; + public SVGLineElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGLinearGradientElement.java b/core-lib/es6/src/main/java/def/dom/SVGLinearGradientElement.java new file mode 100644 index 00000000..23ccf8d6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGLinearGradientElement.java @@ -0,0 +1,10 @@ +package def.dom; +public class SVGLinearGradientElement extends SVGGradientElement { + public SVGAnimatedLength x1; + public SVGAnimatedLength x2; + public SVGAnimatedLength y1; + public SVGAnimatedLength y2; + public static SVGLinearGradientElement prototype; + public SVGLinearGradientElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGLocatable.java b/core-lib/es6/src/main/java/def/dom/SVGLocatable.java new file mode 100644 index 00000000..3d020127 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGLocatable.java @@ -0,0 +1,14 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGLocatable extends def.js.Object { + public SVGElement farthestViewportElement; + public SVGElement nearestViewportElement; + native public SVGRect getBBox(); + native public SVGMatrix getCTM(); + native public SVGMatrix getScreenCTM(); + native public SVGMatrix getTransformToElement(SVGElement element); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGMarkerElement.java b/core-lib/es6/src/main/java/def/dom/SVGMarkerElement.java new file mode 100644 index 00000000..d5e0442f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGMarkerElement.java @@ -0,0 +1,34 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGFitToViewBox.class}) +public class SVGMarkerElement extends SVGElement { + public SVGAnimatedLength markerHeight; + public SVGAnimatedEnumeration markerUnits; + public SVGAnimatedLength markerWidth; + public SVGAnimatedAngle orientAngle; + public SVGAnimatedEnumeration orientType; + public SVGAnimatedLength refX; + public SVGAnimatedLength refY; + native public void setOrientToAngle(SVGAngle angle); + native public void setOrientToAuto(); + public double SVG_MARKERUNITS_STROKEWIDTH; + public double SVG_MARKERUNITS_UNKNOWN; + public double SVG_MARKERUNITS_USERSPACEONUSE; + public double SVG_MARKER_ORIENT_ANGLE; + public double SVG_MARKER_ORIENT_AUTO; + public double SVG_MARKER_ORIENT_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGMarkerElement prototype; + public SVGMarkerElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedRect viewBox; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGMaskElement.java b/core-lib/es6/src/main/java/def/dom/SVGMaskElement.java new file mode 100644 index 00000000..5a437072 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGMaskElement.java @@ -0,0 +1,30 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGUnitTypes.class}) +public class SVGMaskElement extends SVGElement { + public SVGAnimatedLength height; + public SVGAnimatedEnumeration maskContentUnits; + public SVGAnimatedEnumeration maskUnits; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGMaskElement prototype; + public SVGMaskElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public static double SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; + public static double SVG_UNIT_TYPE_UNKNOWN; + public static double SVG_UNIT_TYPE_USERSPACEONUSE; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGMatrix.java b/core-lib/es6/src/main/java/def/dom/SVGMatrix.java new file mode 100644 index 00000000..ec6f76e8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGMatrix.java @@ -0,0 +1,26 @@ +package def.dom; + +import def.js.Object; + +public class SVGMatrix extends def.js.Object { + public double a; + public double b; + public double c; + public double d; + public double e; + public double f; + native public SVGMatrix flipX(); + native public SVGMatrix flipY(); + native public SVGMatrix inverse(); + native public SVGMatrix multiply(SVGMatrix secondMatrix); + native public SVGMatrix rotate(double angle); + native public SVGMatrix rotateFromVector(double x, double y); + native public SVGMatrix scale(double scaleFactor); + native public SVGMatrix scaleNonUniform(double scaleFactorX, double scaleFactorY); + native public SVGMatrix skewX(double angle); + native public SVGMatrix skewY(double angle); + native public SVGMatrix translate(double x, double y); + public static SVGMatrix prototype; + public SVGMatrix(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGMetadataElement.java b/core-lib/es6/src/main/java/def/dom/SVGMetadataElement.java new file mode 100644 index 00000000..8242a2af --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGMetadataElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGMetadataElement extends SVGElement { + public static SVGMetadataElement prototype; + public SVGMetadataElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGNumber.java b/core-lib/es6/src/main/java/def/dom/SVGNumber.java new file mode 100644 index 00000000..1cf55c45 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGNumber.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class SVGNumber extends def.js.Object { + public double value; + public static SVGNumber prototype; + public SVGNumber(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGNumberList.java b/core-lib/es6/src/main/java/def/dom/SVGNumberList.java new file mode 100644 index 00000000..db235111 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGNumberList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class SVGNumberList extends def.js.Object { + public double numberOfItems; + native public SVGNumber appendItem(SVGNumber newItem); + native public void clear(); + native public SVGNumber getItem(double index); + native public SVGNumber initialize(SVGNumber newItem); + native public SVGNumber insertItemBefore(SVGNumber newItem, double index); + native public SVGNumber removeItem(double index); + native public SVGNumber replaceItem(SVGNumber newItem, double index); + public static SVGNumberList prototype; + public SVGNumberList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathElement.java b/core-lib/es6/src/main/java/def/dom/SVGPathElement.java new file mode 100644 index 00000000..5f227e79 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathElement.java @@ -0,0 +1,45 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGAnimatedPathData.class}) +public class SVGPathElement extends SVGElement { + native public SVGPathSegArcAbs createSVGPathSegArcAbs(double x, double y, double r1, double r2, double angle, java.lang.Boolean largeArcFlag, java.lang.Boolean sweepFlag); + native public SVGPathSegArcRel createSVGPathSegArcRel(double x, double y, double r1, double r2, double angle, java.lang.Boolean largeArcFlag, java.lang.Boolean sweepFlag); + native public SVGPathSegClosePath createSVGPathSegClosePath(); + native public SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(double x, double y, double x1, double y1, double x2, double y2); + native public SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(double x, double y, double x1, double y1, double x2, double y2); + native public SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(double x, double y, double x2, double y2); + native public SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(double x, double y, double x2, double y2); + native public SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(double x, double y, double x1, double y1); + native public SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(double x, double y, double x1, double y1); + native public SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(double x, double y); + native public SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(double x, double y); + native public SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(double x, double y); + native public SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(double x); + native public SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(double x); + native public SVGPathSegLinetoRel createSVGPathSegLinetoRel(double x, double y); + native public SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(double y); + native public SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(double y); + native public SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(double x, double y); + native public SVGPathSegMovetoRel createSVGPathSegMovetoRel(double x, double y); + native public double getPathSegAtLength(double distance); + native public SVGPoint getPointAtLength(double distance); + native public double getTotalLength(); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGPathElement prototype; + public SVGPathElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGPathSegList pathSegList; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSeg.java b/core-lib/es6/src/main/java/def/dom/SVGPathSeg.java new file mode 100644 index 00000000..19872d7b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSeg.java @@ -0,0 +1,31 @@ +package def.dom; + +import def.js.Object; + +public class SVGPathSeg extends def.js.Object { + public double pathSegType; + public java.lang.String pathSegTypeAsLetter; + public double PATHSEG_ARC_ABS; + public double PATHSEG_ARC_REL; + public double PATHSEG_CLOSEPATH; + public double PATHSEG_CURVETO_CUBIC_ABS; + public double PATHSEG_CURVETO_CUBIC_REL; + public double PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; + public double PATHSEG_CURVETO_CUBIC_SMOOTH_REL; + public double PATHSEG_CURVETO_QUADRATIC_ABS; + public double PATHSEG_CURVETO_QUADRATIC_REL; + public double PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; + public double PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; + public double PATHSEG_LINETO_ABS; + public double PATHSEG_LINETO_HORIZONTAL_ABS; + public double PATHSEG_LINETO_HORIZONTAL_REL; + public double PATHSEG_LINETO_REL; + public double PATHSEG_LINETO_VERTICAL_ABS; + public double PATHSEG_LINETO_VERTICAL_REL; + public double PATHSEG_MOVETO_ABS; + public double PATHSEG_MOVETO_REL; + public double PATHSEG_UNKNOWN; + public static SVGPathSeg prototype; + public SVGPathSeg(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegArcAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegArcAbs.java new file mode 100644 index 00000000..c7d54d8f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegArcAbs.java @@ -0,0 +1,13 @@ +package def.dom; +public class SVGPathSegArcAbs extends SVGPathSeg { + public double angle; + public java.lang.Boolean largeArcFlag; + public double r1; + public double r2; + public java.lang.Boolean sweepFlag; + public double x; + public double y; + public static SVGPathSegArcAbs prototype; + public SVGPathSegArcAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegArcRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegArcRel.java new file mode 100644 index 00000000..e634b9de --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegArcRel.java @@ -0,0 +1,13 @@ +package def.dom; +public class SVGPathSegArcRel extends SVGPathSeg { + public double angle; + public java.lang.Boolean largeArcFlag; + public double r1; + public double r2; + public java.lang.Boolean sweepFlag; + public double x; + public double y; + public static SVGPathSegArcRel prototype; + public SVGPathSegArcRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegClosePath.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegClosePath.java new file mode 100644 index 00000000..e657ee8c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegClosePath.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGPathSegClosePath extends SVGPathSeg { + public static SVGPathSegClosePath prototype; + public SVGPathSegClosePath(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicAbs.java new file mode 100644 index 00000000..22474edf --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicAbs.java @@ -0,0 +1,12 @@ +package def.dom; +public class SVGPathSegCurvetoCubicAbs extends SVGPathSeg { + public double x; + public double x1; + public double x2; + public double y; + public double y1; + public double y2; + public static SVGPathSegCurvetoCubicAbs prototype; + public SVGPathSegCurvetoCubicAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicRel.java new file mode 100644 index 00000000..0d8a77f6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicRel.java @@ -0,0 +1,12 @@ +package def.dom; +public class SVGPathSegCurvetoCubicRel extends SVGPathSeg { + public double x; + public double x1; + public double x2; + public double y; + public double y1; + public double y2; + public static SVGPathSegCurvetoCubicRel prototype; + public SVGPathSegCurvetoCubicRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicSmoothAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicSmoothAbs.java new file mode 100644 index 00000000..2b0a418b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicSmoothAbs.java @@ -0,0 +1,10 @@ +package def.dom; +public class SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { + public double x; + public double x2; + public double y; + public double y2; + public static SVGPathSegCurvetoCubicSmoothAbs prototype; + public SVGPathSegCurvetoCubicSmoothAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicSmoothRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicSmoothRel.java new file mode 100644 index 00000000..2b97cc59 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoCubicSmoothRel.java @@ -0,0 +1,10 @@ +package def.dom; +public class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { + public double x; + public double x2; + public double y; + public double y2; + public static SVGPathSegCurvetoCubicSmoothRel prototype; + public SVGPathSegCurvetoCubicSmoothRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticAbs.java new file mode 100644 index 00000000..a952329a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticAbs.java @@ -0,0 +1,10 @@ +package def.dom; +public class SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { + public double x; + public double x1; + public double y; + public double y1; + public static SVGPathSegCurvetoQuadraticAbs prototype; + public SVGPathSegCurvetoQuadraticAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticRel.java new file mode 100644 index 00000000..d1b952d9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticRel.java @@ -0,0 +1,10 @@ +package def.dom; +public class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { + public double x; + public double x1; + public double y; + public double y1; + public static SVGPathSegCurvetoQuadraticRel prototype; + public SVGPathSegCurvetoQuadraticRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticSmoothAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticSmoothAbs.java new file mode 100644 index 00000000..40e7a42d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticSmoothAbs.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { + public double x; + public double y; + public static SVGPathSegCurvetoQuadraticSmoothAbs prototype; + public SVGPathSegCurvetoQuadraticSmoothAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticSmoothRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticSmoothRel.java new file mode 100644 index 00000000..a17fa73c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegCurvetoQuadraticSmoothRel.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { + public double x; + public double y; + public static SVGPathSegCurvetoQuadraticSmoothRel prototype; + public SVGPathSegCurvetoQuadraticSmoothRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoAbs.java new file mode 100644 index 00000000..94597211 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoAbs.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGPathSegLinetoAbs extends SVGPathSeg { + public double x; + public double y; + public static SVGPathSegLinetoAbs prototype; + public SVGPathSegLinetoAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoHorizontalAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoHorizontalAbs.java new file mode 100644 index 00000000..e4a4b213 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoHorizontalAbs.java @@ -0,0 +1,7 @@ +package def.dom; +public class SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { + public double x; + public static SVGPathSegLinetoHorizontalAbs prototype; + public SVGPathSegLinetoHorizontalAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoHorizontalRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoHorizontalRel.java new file mode 100644 index 00000000..51723140 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoHorizontalRel.java @@ -0,0 +1,7 @@ +package def.dom; +public class SVGPathSegLinetoHorizontalRel extends SVGPathSeg { + public double x; + public static SVGPathSegLinetoHorizontalRel prototype; + public SVGPathSegLinetoHorizontalRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoRel.java new file mode 100644 index 00000000..89430fe0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoRel.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGPathSegLinetoRel extends SVGPathSeg { + public double x; + public double y; + public static SVGPathSegLinetoRel prototype; + public SVGPathSegLinetoRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalAbs.java new file mode 100644 index 00000000..166257bd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalAbs.java @@ -0,0 +1,7 @@ +package def.dom; +public class SVGPathSegLinetoVerticalAbs extends SVGPathSeg { + public double y; + public static SVGPathSegLinetoVerticalAbs prototype; + public SVGPathSegLinetoVerticalAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalRel.java new file mode 100644 index 00000000..01786d66 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalRel.java @@ -0,0 +1,7 @@ +package def.dom; +public class SVGPathSegLinetoVerticalRel extends SVGPathSeg { + public double y; + public static SVGPathSegLinetoVerticalRel prototype; + public SVGPathSegLinetoVerticalRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegList.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegList.java new file mode 100644 index 00000000..478f7028 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class SVGPathSegList extends def.js.Object { + public double numberOfItems; + native public SVGPathSeg appendItem(SVGPathSeg newItem); + native public void clear(); + native public SVGPathSeg getItem(double index); + native public SVGPathSeg initialize(SVGPathSeg newItem); + native public SVGPathSeg insertItemBefore(SVGPathSeg newItem, double index); + native public SVGPathSeg removeItem(double index); + native public SVGPathSeg replaceItem(SVGPathSeg newItem, double index); + public static SVGPathSegList prototype; + public SVGPathSegList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegMovetoAbs.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegMovetoAbs.java new file mode 100644 index 00000000..333a9ce4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegMovetoAbs.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGPathSegMovetoAbs extends SVGPathSeg { + public double x; + public double y; + public static SVGPathSegMovetoAbs prototype; + public SVGPathSegMovetoAbs(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPathSegMovetoRel.java b/core-lib/es6/src/main/java/def/dom/SVGPathSegMovetoRel.java new file mode 100644 index 00000000..73e16664 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPathSegMovetoRel.java @@ -0,0 +1,8 @@ +package def.dom; +public class SVGPathSegMovetoRel extends SVGPathSeg { + public double x; + public double y; + public static SVGPathSegMovetoRel prototype; + public SVGPathSegMovetoRel(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPatternElement.java b/core-lib/es6/src/main/java/def/dom/SVGPatternElement.java new file mode 100644 index 00000000..9aa41030 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPatternElement.java @@ -0,0 +1,34 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGFitToViewBox.class,SVGURIReference.class,SVGUnitTypes.class}) +public class SVGPatternElement extends SVGElement { + public SVGAnimatedLength height; + public SVGAnimatedEnumeration patternContentUnits; + public SVGAnimatedTransformList patternTransform; + public SVGAnimatedEnumeration patternUnits; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGPatternElement prototype; + public SVGPatternElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedRect viewBox; + public SVGAnimatedString href; + public static double SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; + public static double SVG_UNIT_TYPE_UNKNOWN; + public static double SVG_UNIT_TYPE_USERSPACEONUSE; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPoint.java b/core-lib/es6/src/main/java/def/dom/SVGPoint.java new file mode 100644 index 00000000..1ab3db47 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPoint.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class SVGPoint extends def.js.Object { + public double x; + public double y; + native public SVGPoint matrixTransform(SVGMatrix matrix); + public static SVGPoint prototype; + public SVGPoint(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPointList.java b/core-lib/es6/src/main/java/def/dom/SVGPointList.java new file mode 100644 index 00000000..ad5856dd --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPointList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class SVGPointList extends def.js.Object { + public double numberOfItems; + native public SVGPoint appendItem(SVGPoint newItem); + native public void clear(); + native public SVGPoint getItem(double index); + native public SVGPoint initialize(SVGPoint newItem); + native public SVGPoint insertItemBefore(SVGPoint newItem, double index); + native public SVGPoint removeItem(double index); + native public SVGPoint replaceItem(SVGPoint newItem, double index); + public static SVGPointList prototype; + public SVGPointList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPolygonElement.java b/core-lib/es6/src/main/java/def/dom/SVGPolygonElement.java new file mode 100644 index 00000000..9bdebd48 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPolygonElement.java @@ -0,0 +1,24 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGAnimatedPoints.class}) +public class SVGPolygonElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGPolygonElement prototype; + public SVGPolygonElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGPointList animatedPoints; + public SVGPointList points; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPolylineElement.java b/core-lib/es6/src/main/java/def/dom/SVGPolylineElement.java new file mode 100644 index 00000000..805d2496 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPolylineElement.java @@ -0,0 +1,24 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGAnimatedPoints.class}) +public class SVGPolylineElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGPolylineElement prototype; + public SVGPolylineElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGPointList animatedPoints; + public SVGPointList points; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGPreserveAspectRatio.java b/core-lib/es6/src/main/java/def/dom/SVGPreserveAspectRatio.java new file mode 100644 index 00000000..5f83b279 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGPreserveAspectRatio.java @@ -0,0 +1,25 @@ +package def.dom; + +import def.js.Object; + +public class SVGPreserveAspectRatio extends def.js.Object { + public double align; + public double meetOrSlice; + public double SVG_MEETORSLICE_MEET; + public double SVG_MEETORSLICE_SLICE; + public double SVG_MEETORSLICE_UNKNOWN; + public double SVG_PRESERVEASPECTRATIO_NONE; + public double SVG_PRESERVEASPECTRATIO_UNKNOWN; + public double SVG_PRESERVEASPECTRATIO_XMAXYMAX; + public double SVG_PRESERVEASPECTRATIO_XMAXYMID; + public double SVG_PRESERVEASPECTRATIO_XMAXYMIN; + public double SVG_PRESERVEASPECTRATIO_XMIDYMAX; + public double SVG_PRESERVEASPECTRATIO_XMIDYMID; + public double SVG_PRESERVEASPECTRATIO_XMIDYMIN; + public double SVG_PRESERVEASPECTRATIO_XMINYMAX; + public double SVG_PRESERVEASPECTRATIO_XMINYMID; + public double SVG_PRESERVEASPECTRATIO_XMINYMIN; + public static SVGPreserveAspectRatio prototype; + public SVGPreserveAspectRatio(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGRadialGradientElement.java b/core-lib/es6/src/main/java/def/dom/SVGRadialGradientElement.java new file mode 100644 index 00000000..2624e8d9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGRadialGradientElement.java @@ -0,0 +1,11 @@ +package def.dom; +public class SVGRadialGradientElement extends SVGGradientElement { + public SVGAnimatedLength cx; + public SVGAnimatedLength cy; + public SVGAnimatedLength fx; + public SVGAnimatedLength fy; + public SVGAnimatedLength r; + public static SVGRadialGradientElement prototype; + public SVGRadialGradientElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGRect.java b/core-lib/es6/src/main/java/def/dom/SVGRect.java new file mode 100644 index 00000000..16cef3be --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGRect.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class SVGRect extends def.js.Object { + public double height; + public double width; + public double x; + public double y; + public static SVGRect prototype; + public SVGRect(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGRectElement.java b/core-lib/es6/src/main/java/def/dom/SVGRectElement.java new file mode 100644 index 00000000..76e0d7aa --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGRectElement.java @@ -0,0 +1,28 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGRectElement extends SVGElement { + public SVGAnimatedLength height; + public SVGAnimatedLength rx; + public SVGAnimatedLength ry; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGRectElement prototype; + public SVGRectElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGSVGElement.java b/core-lib/es6/src/main/java/def/dom/SVGSVGElement.java new file mode 100644 index 00000000..2b32ca25 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGSVGElement.java @@ -0,0 +1,297 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.Events; +import def.js.StringTypes.MSGestureChange; +import def.js.StringTypes.MSGestureDoubleTap; +import def.js.StringTypes.MSGestureEnd; +import def.js.StringTypes.MSGestureHold; +import def.js.StringTypes.MSGestureStart; +import def.js.StringTypes.MSGestureTap; +import def.js.StringTypes.MSGotPointerCapture; +import def.js.StringTypes.MSInertiaStart; +import def.js.StringTypes.MSLostPointerCapture; +import def.js.StringTypes.MSPointerCancel; +import def.js.StringTypes.MSPointerDown; +import def.js.StringTypes.MSPointerEnter; +import def.js.StringTypes.MSPointerLeave; +import def.js.StringTypes.MSPointerMove; +import def.js.StringTypes.MSPointerOut; +import def.js.StringTypes.MSPointerOver; +import def.js.StringTypes.MSPointerUp; +import def.js.StringTypes.MouseEvents; +import def.js.StringTypes.MutationEvents; +import def.js.StringTypes.SVGAbort; +import def.js.StringTypes.SVGError; +import def.js.StringTypes.SVGUnload; +import def.js.StringTypes.SVGZoom; +import def.js.StringTypes.SVGZoomEvent; +import def.js.StringTypes.SVGZoomEvents; +import def.js.StringTypes.TransitionEvent; +import def.js.StringTypes.UIEvents; +import def.js.StringTypes.WebGLContextEvent; +import def.js.StringTypes.ariarequest; +import def.js.StringTypes.click; +import def.js.StringTypes.command; +import def.js.StringTypes.dblclick; +import def.js.StringTypes.focusin; +import def.js.StringTypes.focusout; +import def.js.StringTypes.gotpointercapture; +import def.js.StringTypes.load; +import def.js.StringTypes.lostpointercapture; +import def.js.StringTypes.mousedown; +import def.js.StringTypes.mousemove; +import def.js.StringTypes.mouseout; +import def.js.StringTypes.mouseover; +import def.js.StringTypes.mouseup; +import def.js.StringTypes.pointercancel; +import def.js.StringTypes.pointerdown; +import def.js.StringTypes.pointerenter; +import def.js.StringTypes.pointerleave; +import def.js.StringTypes.pointermove; +import def.js.StringTypes.pointerout; +import def.js.StringTypes.pointerover; +import def.js.StringTypes.pointerup; +import def.js.StringTypes.resize; +import def.js.StringTypes.scroll; +import def.js.StringTypes.touchcancel; +import def.js.StringTypes.touchend; +import def.js.StringTypes.touchmove; +import def.js.StringTypes.touchstart; +import def.js.StringTypes.webkitfullscreenchange; +import def.js.StringTypes.webkitfullscreenerror; +import def.js.StringTypes.wheel; + +@jsweet.lang.Extends({DocumentEvent.class,SVGLocatable.class,SVGTests.class,SVGStylable.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGFitToViewBox.class,SVGZoomAndPan.class}) +public class SVGSVGElement extends SVGElement { + public java.lang.String contentScriptType; + public java.lang.String contentStyleType; + public double currentScale; + public SVGPoint currentTranslate; + public SVGAnimatedLength height; + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onresize; + public java.util.function.Function onscroll; + public java.util.function.Function onunload; + public java.util.function.Function onzoom; + public double pixelUnitToMillimeterX; + public double pixelUnitToMillimeterY; + public double screenPixelToMillimeterX; + public double screenPixelToMillimeterY; + public SVGRect viewport; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public java.lang.Boolean checkEnclosure(SVGElement element, SVGRect rect); + native public java.lang.Boolean checkIntersection(SVGElement element, SVGRect rect); + native public SVGAngle createSVGAngle(); + native public SVGLength createSVGLength(); + native public SVGMatrix createSVGMatrix(); + native public SVGNumber createSVGNumber(); + native public SVGPoint createSVGPoint(); + native public SVGRect createSVGRect(); + native public SVGTransform createSVGTransform(); + native public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); + native public void deselectAll(); + native public void forceRedraw(); + native public CSSStyleDeclaration getComputedStyle(Element elt, java.lang.String pseudoElt); + native public double getCurrentTime(); + native public Element getElementById(java.lang.String elementId); + native public NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement); + native public NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement); + native public void pauseAnimations(); + native public void setCurrentTime(double seconds); + native public double suspendRedraw(double maxWaitMilliseconds); + native public void unpauseAnimations(); + native public void unsuspendRedraw(double suspendHandleID); + native public void unsuspendRedrawAll(); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.SVGAbort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.SVGError type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.SVGUnload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.SVGZoom type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focusin type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focusout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGSVGElement prototype; + public SVGSVGElement(){} + native public AnimationEvent createEvent(def.js.StringTypes.AnimationEvent eventInterface); + native public AriaRequestEvent createEvent(def.js.StringTypes.AriaRequestEvent eventInterface); + native public AudioProcessingEvent createEvent(def.js.StringTypes.AudioProcessingEvent eventInterface); + native public BeforeUnloadEvent createEvent(def.js.StringTypes.BeforeUnloadEvent eventInterface); + native public ClipboardEvent createEvent(def.js.StringTypes.ClipboardEvent eventInterface); + native public CloseEvent createEvent(def.js.StringTypes.CloseEvent eventInterface); + native public CommandEvent createEvent(def.js.StringTypes.CommandEvent eventInterface); + native public CompositionEvent createEvent(def.js.StringTypes.CompositionEvent eventInterface); + native public CustomEvent createEvent(def.js.StringTypes.CustomEvent eventInterface); + native public DeviceMotionEvent createEvent(def.js.StringTypes.DeviceMotionEvent eventInterface); + native public DeviceOrientationEvent createEvent(def.js.StringTypes.DeviceOrientationEvent eventInterface); + native public DragEvent createEvent(def.js.StringTypes.DragEvent eventInterface); + native public ErrorEvent createEvent(def.js.StringTypes.ErrorEvent eventInterface); + native public Event createEvent(def.js.StringTypes.Event eventInterface); + native public Event createEvent(def.js.StringTypes.Events eventInterface); + native public FocusEvent createEvent(def.js.StringTypes.FocusEvent eventInterface); + native public GamepadEvent createEvent(def.js.StringTypes.GamepadEvent eventInterface); + native public HashChangeEvent createEvent(def.js.StringTypes.HashChangeEvent eventInterface); + native public IDBVersionChangeEvent createEvent(def.js.StringTypes.IDBVersionChangeEvent eventInterface); + native public KeyboardEvent createEvent(def.js.StringTypes.KeyboardEvent eventInterface); + native public LongRunningScriptDetectedEvent createEvent(def.js.StringTypes.LongRunningScriptDetectedEvent eventInterface); + native public MSGestureEvent createEvent(def.js.StringTypes.MSGestureEvent eventInterface); + native public MSManipulationEvent createEvent(def.js.StringTypes.MSManipulationEvent eventInterface); + native public MSMediaKeyMessageEvent createEvent(def.js.StringTypes.MSMediaKeyMessageEvent eventInterface); + native public MSMediaKeyNeededEvent createEvent(def.js.StringTypes.MSMediaKeyNeededEvent eventInterface); + native public MSPointerEvent createEvent(def.js.StringTypes.MSPointerEvent eventInterface); + native public MSSiteModeEvent createEvent(def.js.StringTypes.MSSiteModeEvent eventInterface); + native public MessageEvent createEvent(def.js.StringTypes.MessageEvent eventInterface); + native public MouseEvent createEvent(def.js.StringTypes.MouseEvent eventInterface); + native public MouseEvent createEvent(def.js.StringTypes.MouseEvents eventInterface); + native public MouseWheelEvent createEvent(def.js.StringTypes.MouseWheelEvent eventInterface); + native public MutationEvent createEvent(def.js.StringTypes.MutationEvent eventInterface); + native public MutationEvent createEvent(def.js.StringTypes.MutationEvents eventInterface); + native public NavigationCompletedEvent createEvent(def.js.StringTypes.NavigationCompletedEvent eventInterface); + native public NavigationEvent createEvent(def.js.StringTypes.NavigationEvent eventInterface); + native public NavigationEventWithReferrer createEvent(def.js.StringTypes.NavigationEventWithReferrer eventInterface); + native public OfflineAudioCompletionEvent createEvent(def.js.StringTypes.OfflineAudioCompletionEvent eventInterface); + native public PageTransitionEvent createEvent(def.js.StringTypes.PageTransitionEvent eventInterface); + native public PermissionRequestedEvent createEvent(def.js.StringTypes.PermissionRequestedEvent eventInterface); + native public PointerEvent createEvent(def.js.StringTypes.PointerEvent eventInterface); + native public PopStateEvent createEvent(def.js.StringTypes.PopStateEvent eventInterface); + native public ProgressEvent createEvent(def.js.StringTypes.ProgressEvent eventInterface); + native public SVGZoomEvent createEvent(def.js.StringTypes.SVGZoomEvent eventInterface); + native public SVGZoomEvent createEvent(def.js.StringTypes.SVGZoomEvents eventInterface); + native public ScriptNotifyEvent createEvent(def.js.StringTypes.ScriptNotifyEvent eventInterface); + native public StorageEvent createEvent(def.js.StringTypes.StorageEvent eventInterface); + native public TextEvent createEvent(def.js.StringTypes.TextEvent eventInterface); + native public TouchEvent createEvent(def.js.StringTypes.TouchEvent eventInterface); + native public TrackEvent createEvent(def.js.StringTypes.TrackEvent eventInterface); + native public TransitionEvent createEvent(def.js.StringTypes.TransitionEvent eventInterface); + native public UIEvent createEvent(def.js.StringTypes.UIEvent eventInterface); + native public UIEvent createEvent(def.js.StringTypes.UIEvents eventInterface); + native public UnviewableContentIdentifiedEvent createEvent(def.js.StringTypes.UnviewableContentIdentifiedEvent eventInterface); + native public WebGLContextEvent createEvent(def.js.StringTypes.WebGLContextEvent eventInterface); + native public WheelEvent createEvent(def.js.StringTypes.WheelEvent eventInterface); + native public Event createEvent(java.lang.String eventInterface); + public SVGElement farthestViewportElement; + public SVGElement nearestViewportElement; + native public SVGRect getBBox(); + native public SVGMatrix getCTM(); + native public SVGMatrix getScreenCTM(); + native public SVGMatrix getTransformToElement(SVGElement element); + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedRect viewBox; + public static double SVG_ZOOMANDPAN_DISABLE; + public static double SVG_ZOOMANDPAN_MAGNIFY; + public static double SVG_ZOOMANDPAN_UNKNOWN; + native public CSSStyleDeclaration getComputedStyle(Element elt); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGotPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSLostPointerCapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.SVGAbort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.SVGError type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.SVGUnload type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.SVGZoom type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ariarequest type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.command type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focusin type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focusout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.gotpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.lostpointercapture type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchcancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchmove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.touchstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.webkitfullscreenerror type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGScriptElement.java b/core-lib/es6/src/main/java/def/dom/SVGScriptElement.java new file mode 100644 index 00000000..284381a3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGScriptElement.java @@ -0,0 +1,15 @@ +package def.dom; + +@jsweet.lang.Extends({SVGExternalResourcesRequired.class,SVGURIReference.class}) +public class SVGScriptElement extends SVGElement { + public java.lang.String type; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGScriptElement prototype; + public SVGScriptElement(){} + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedString href; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGStopElement.java b/core-lib/es6/src/main/java/def/dom/SVGStopElement.java new file mode 100644 index 00000000..f454a054 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGStopElement.java @@ -0,0 +1,15 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class}) +public class SVGStopElement extends SVGElement { + public SVGAnimatedNumber offset; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGStopElement prototype; + public SVGStopElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGStringList.java b/core-lib/es6/src/main/java/def/dom/SVGStringList.java new file mode 100644 index 00000000..52bef5cc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGStringList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class SVGStringList extends def.js.Object { + public double numberOfItems; + native public java.lang.String appendItem(java.lang.String newItem); + native public void clear(); + native public java.lang.String getItem(double index); + native public java.lang.String initialize(java.lang.String newItem); + native public java.lang.String insertItemBefore(java.lang.String newItem, double index); + native public java.lang.String removeItem(double index); + native public java.lang.String replaceItem(java.lang.String newItem, double index); + public static SVGStringList prototype; + public SVGStringList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGStylable.java b/core-lib/es6/src/main/java/def/dom/SVGStylable.java new file mode 100644 index 00000000..2b0a2036 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGStylable.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGStylable extends def.js.Object { + public SVGAnimatedString className; + public CSSStyleDeclaration style; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGStyleElement.java b/core-lib/es6/src/main/java/def/dom/SVGStyleElement.java new file mode 100644 index 00000000..67b959ef --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGStyleElement.java @@ -0,0 +1,17 @@ +package def.dom; + +@jsweet.lang.Extends({SVGLangSpace.class}) +public class SVGStyleElement extends SVGElement { + public java.lang.String media; + public java.lang.String title; + public java.lang.String type; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGStyleElement prototype; + public SVGStyleElement(){} + public java.lang.String xmllang; + public java.lang.String xmlspace; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGSwitchElement.java b/core-lib/es6/src/main/java/def/dom/SVGSwitchElement.java new file mode 100644 index 00000000..a69c2119 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGSwitchElement.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGSwitchElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGSwitchElement prototype; + public SVGSwitchElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGSymbolElement.java b/core-lib/es6/src/main/java/def/dom/SVGSymbolElement.java new file mode 100644 index 00000000..b95835cc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGSymbolElement.java @@ -0,0 +1,19 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGFitToViewBox.class}) +public class SVGSymbolElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGSymbolElement prototype; + public SVGSymbolElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedRect viewBox; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTSpanElement.java b/core-lib/es6/src/main/java/def/dom/SVGTSpanElement.java new file mode 100644 index 00000000..46bb829e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTSpanElement.java @@ -0,0 +1,6 @@ +package def.dom; +public class SVGTSpanElement extends SVGTextPositioningElement { + public static SVGTSpanElement prototype; + public SVGTSpanElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTests.java b/core-lib/es6/src/main/java/def/dom/SVGTests.java new file mode 100644 index 00000000..eb906301 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTests.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGTests extends def.js.Object { + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTextContentElement.java b/core-lib/es6/src/main/java/def/dom/SVGTextContentElement.java new file mode 100644 index 00000000..ea9cdaf3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTextContentElement.java @@ -0,0 +1,35 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class}) +public class SVGTextContentElement extends SVGElement { + public SVGAnimatedEnumeration lengthAdjust; + public SVGAnimatedLength textLength; + native public double getCharNumAtPosition(SVGPoint point); + native public double getComputedTextLength(); + native public SVGPoint getEndPositionOfChar(double charnum); + native public SVGRect getExtentOfChar(double charnum); + native public double getNumberOfChars(); + native public double getRotationOfChar(double charnum); + native public SVGPoint getStartPositionOfChar(double charnum); + native public double getSubStringLength(double charnum, double nchars); + native public void selectSubString(double charnum, double nchars); + public double LENGTHADJUST_SPACING; + public double LENGTHADJUST_SPACINGANDGLYPHS; + public double LENGTHADJUST_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGTextContentElement prototype; + public SVGTextContentElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTextElement.java b/core-lib/es6/src/main/java/def/dom/SVGTextElement.java new file mode 100644 index 00000000..a4e61109 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTextElement.java @@ -0,0 +1,13 @@ +package def.dom; + +@jsweet.lang.Extends({SVGTransformable.class}) +public class SVGTextElement extends SVGTextPositioningElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGTextElement prototype; + public SVGTextElement(){} + public SVGAnimatedTransformList transform; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTextPathElement.java b/core-lib/es6/src/main/java/def/dom/SVGTextPathElement.java new file mode 100644 index 00000000..d4a1be12 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTextPathElement.java @@ -0,0 +1,22 @@ +package def.dom; + +@jsweet.lang.Extends({SVGURIReference.class}) +public class SVGTextPathElement extends SVGTextContentElement { + public SVGAnimatedEnumeration method; + public SVGAnimatedEnumeration spacing; + public SVGAnimatedLength startOffset; + public double TEXTPATH_METHODTYPE_ALIGN; + public double TEXTPATH_METHODTYPE_STRETCH; + public double TEXTPATH_METHODTYPE_UNKNOWN; + public double TEXTPATH_SPACINGTYPE_AUTO; + public double TEXTPATH_SPACINGTYPE_EXACT; + public double TEXTPATH_SPACINGTYPE_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGTextPathElement prototype; + public SVGTextPathElement(){} + public SVGAnimatedString href; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTextPositioningElement.java b/core-lib/es6/src/main/java/def/dom/SVGTextPositioningElement.java new file mode 100644 index 00000000..37c66d62 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTextPositioningElement.java @@ -0,0 +1,11 @@ +package def.dom; +public class SVGTextPositioningElement extends SVGTextContentElement { + public SVGAnimatedLengthList dx; + public SVGAnimatedLengthList dy; + public SVGAnimatedNumberList rotate; + public SVGAnimatedLengthList x; + public SVGAnimatedLengthList y; + public static SVGTextPositioningElement prototype; + public SVGTextPositioningElement(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTitleElement.java b/core-lib/es6/src/main/java/def/dom/SVGTitleElement.java new file mode 100644 index 00000000..b11fffb4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTitleElement.java @@ -0,0 +1,16 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGLangSpace.class}) +public class SVGTitleElement extends SVGElement { + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGTitleElement prototype; + public SVGTitleElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public java.lang.String xmllang; + public java.lang.String xmlspace; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTransform.java b/core-lib/es6/src/main/java/def/dom/SVGTransform.java new file mode 100644 index 00000000..7e61a9c4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTransform.java @@ -0,0 +1,25 @@ +package def.dom; + +import def.js.Object; + +public class SVGTransform extends def.js.Object { + public double angle; + public SVGMatrix matrix; + public double type; + native public void setMatrix(SVGMatrix matrix); + native public void setRotate(double angle, double cx, double cy); + native public void setScale(double sx, double sy); + native public void setSkewX(double angle); + native public void setSkewY(double angle); + native public void setTranslate(double tx, double ty); + public double SVG_TRANSFORM_MATRIX; + public double SVG_TRANSFORM_ROTATE; + public double SVG_TRANSFORM_SCALE; + public double SVG_TRANSFORM_SKEWX; + public double SVG_TRANSFORM_SKEWY; + public double SVG_TRANSFORM_TRANSLATE; + public double SVG_TRANSFORM_UNKNOWN; + public static SVGTransform prototype; + public SVGTransform(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTransformList.java b/core-lib/es6/src/main/java/def/dom/SVGTransformList.java new file mode 100644 index 00000000..6b61ef6e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTransformList.java @@ -0,0 +1,19 @@ +package def.dom; + +import def.js.Object; + +public class SVGTransformList extends def.js.Object { + public double numberOfItems; + native public SVGTransform appendItem(SVGTransform newItem); + native public void clear(); + native public SVGTransform consolidate(); + native public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); + native public SVGTransform getItem(double index); + native public SVGTransform initialize(SVGTransform newItem); + native public SVGTransform insertItemBefore(SVGTransform newItem, double index); + native public SVGTransform removeItem(double index); + native public SVGTransform replaceItem(SVGTransform newItem, double index); + public static SVGTransformList prototype; + public SVGTransformList(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGTransformable.java b/core-lib/es6/src/main/java/def/dom/SVGTransformable.java new file mode 100644 index 00000000..0c091cdb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGTransformable.java @@ -0,0 +1,6 @@ +package def.dom; +@jsweet.lang.Interface +public abstract class SVGTransformable extends SVGLocatable { + public SVGAnimatedTransformList transform; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGURIReference.java b/core-lib/es6/src/main/java/def/dom/SVGURIReference.java new file mode 100644 index 00000000..3858ace4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGURIReference.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGURIReference extends def.js.Object { + public SVGAnimatedString href; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGUnitTypes.java b/core-lib/es6/src/main/java/def/dom/SVGUnitTypes.java new file mode 100644 index 00000000..2b720823 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGUnitTypes.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGUnitTypes extends def.js.Object { + public static double SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; + public static double SVG_UNIT_TYPE_UNKNOWN; + public static double SVG_UNIT_TYPE_USERSPACEONUSE; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGUseElement.java b/core-lib/es6/src/main/java/def/dom/SVGUseElement.java new file mode 100644 index 00000000..e18d0a07 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGUseElement.java @@ -0,0 +1,29 @@ +package def.dom; + +@jsweet.lang.Extends({SVGStylable.class,SVGTransformable.class,SVGTests.class,SVGLangSpace.class,SVGExternalResourcesRequired.class,SVGURIReference.class}) +public class SVGUseElement extends SVGElement { + public SVGElementInstance animatedInstanceRoot; + public SVGAnimatedLength height; + public SVGElementInstance instanceRoot; + public SVGAnimatedLength width; + public SVGAnimatedLength x; + public SVGAnimatedLength y; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGUseElement prototype; + public SVGUseElement(){} + public SVGAnimatedString className; + public CSSStyleDeclaration style; + public SVGAnimatedTransformList transform; + public SVGStringList requiredExtensions; + public SVGStringList requiredFeatures; + public SVGStringList systemLanguage; + native public java.lang.Boolean hasExtension(java.lang.String extension); + public java.lang.String xmllang; + public java.lang.String xmlspace; + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedString href; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGViewElement.java b/core-lib/es6/src/main/java/def/dom/SVGViewElement.java new file mode 100644 index 00000000..8d52f3e8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGViewElement.java @@ -0,0 +1,19 @@ +package def.dom; + +@jsweet.lang.Extends({SVGExternalResourcesRequired.class,SVGFitToViewBox.class,SVGZoomAndPan.class}) +public class SVGViewElement extends SVGElement { + public SVGStringList viewTarget; + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static SVGViewElement prototype; + public SVGViewElement(){} + public SVGAnimatedBoolean externalResourcesRequired; + public SVGAnimatedPreserveAspectRatio preserveAspectRatio; + public SVGAnimatedRect viewBox; + public static double SVG_ZOOMANDPAN_DISABLE; + public static double SVG_ZOOMANDPAN_MAGNIFY; + public static double SVG_ZOOMANDPAN_UNKNOWN; + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGZoomAndPan.java b/core-lib/es6/src/main/java/def/dom/SVGZoomAndPan.java new file mode 100644 index 00000000..5e5bd375 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGZoomAndPan.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class SVGZoomAndPan extends def.js.Object { + public static double SVG_ZOOMANDPAN_DISABLE; + public static double SVG_ZOOMANDPAN_MAGNIFY; + public static double SVG_ZOOMANDPAN_UNKNOWN; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SVGZoomEvent.java b/core-lib/es6/src/main/java/def/dom/SVGZoomEvent.java new file mode 100644 index 00000000..89040b9c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SVGZoomEvent.java @@ -0,0 +1,12 @@ +package def.dom; + +public class SVGZoomEvent extends UIEvent { + public double newScale; + public SVGPoint newTranslate; + public double previousScale; + public SVGPoint previousTranslate; + public SVGRect zoomRectScreen; + public static SVGZoomEvent prototype; + public SVGZoomEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Screen.java b/core-lib/es6/src/main/java/def/dom/Screen.java new file mode 100644 index 00000000..4e6d50e2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Screen.java @@ -0,0 +1,35 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.MSOrientationChange; + +public class Screen extends EventTarget { + public double availHeight; + public double availWidth; + public double bufferDepth; + public double colorDepth; + public double deviceXDPI; + public double deviceYDPI; + public java.lang.Boolean fontSmoothingEnabled; + public double height; + public double logicalXDPI; + public double logicalYDPI; + public java.lang.String msOrientation; + public java.util.function.Function onmsorientationchange; + public double pixelDepth; + public double systemXDPI; + public double systemYDPI; + public double width; + native public java.lang.Boolean msLockOrientation(java.lang.String orientations); + native public java.lang.Boolean msLockOrientation(java.lang.String[] orientations); + native public void msUnlockOrientation(); + native public void addEventListener(def.js.StringTypes.MSOrientationChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static Screen prototype; + public Screen(){} + native public void addEventListener(def.js.StringTypes.MSOrientationChange type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/ScriptNotifyEvent.java b/core-lib/es6/src/main/java/def/dom/ScriptNotifyEvent.java new file mode 100644 index 00000000..7b651a6b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ScriptNotifyEvent.java @@ -0,0 +1,9 @@ +package def.dom; + +public class ScriptNotifyEvent extends Event { + public java.lang.String callingUri; + public java.lang.String value; + public static ScriptNotifyEvent prototype; + public ScriptNotifyEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ScriptProcessorNode.java b/core-lib/es6/src/main/java/def/dom/ScriptProcessorNode.java new file mode 100644 index 00000000..4acf3bfe --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ScriptProcessorNode.java @@ -0,0 +1,18 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.audioprocess; + +public class ScriptProcessorNode extends AudioNode { + public double bufferSize; + public java.util.function.Function onaudioprocess; + native public void addEventListener(def.js.StringTypes.audioprocess type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static ScriptProcessorNode prototype; + public ScriptProcessorNode(){} + native public void addEventListener(def.js.StringTypes.audioprocess type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/Selection.java b/core-lib/es6/src/main/java/def/dom/Selection.java new file mode 100644 index 00000000..a6e32c7f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Selection.java @@ -0,0 +1,30 @@ +package def.dom; + +import def.js.Object; + +public class Selection extends def.js.Object { + public Node anchorNode; + public double anchorOffset; + public Node focusNode; + public double focusOffset; + public java.lang.Boolean isCollapsed; + public double rangeCount; + public java.lang.String type; + native public void addRange(Range range); + native public void collapse(Node parentNode, double offset); + native public void collapseToEnd(); + native public void collapseToStart(); + native public java.lang.Boolean containsNode(Node node, java.lang.Boolean partlyContained); + native public void deleteFromDocument(); + native public void empty(); + native public void extend(Node newNode, double offset); + native public Range getRangeAt(double index); + native public void removeAllRanges(); + native public void removeRange(Range range); + native public void selectAllChildren(Node parentNode); + native public void setBaseAndExtent(Node baseNode, double baseOffset, Node extentNode, double extentOffset); + native public java.lang.String toString(); + public static Selection prototype; + public Selection(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/SharedKeyboardAndMouseEventInit.java b/core-lib/es6/src/main/java/def/dom/SharedKeyboardAndMouseEventInit.java new file mode 100644 index 00000000..9a01b33f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SharedKeyboardAndMouseEventInit.java @@ -0,0 +1,36 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class SharedKeyboardAndMouseEventInit extends UIEventInit { + @jsweet.lang.Optional + public java.lang.Boolean ctrlKey; + @jsweet.lang.Optional + public java.lang.Boolean shiftKey; + @jsweet.lang.Optional + public java.lang.Boolean altKey; + @jsweet.lang.Optional + public java.lang.Boolean metaKey; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateAltGraph; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateCapsLock; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateFn; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateFnLock; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateHyper; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateNumLock; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateOS; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateScrollLock; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateSuper; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateSymbol; + @jsweet.lang.Optional + public java.lang.Boolean keyModifierStateSymbolLock; +} + diff --git a/core-lib/es6/src/main/java/def/dom/SourceBuffer.java b/core-lib/es6/src/main/java/def/dom/SourceBuffer.java new file mode 100644 index 00000000..4f5f05fe --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SourceBuffer.java @@ -0,0 +1,24 @@ +package def.dom; + +import def.js.ArrayBuffer; +import def.js.ArrayBufferView; + +public class SourceBuffer extends EventTarget { + public double appendWindowEnd; + public double appendWindowStart; + public AudioTrackList audioTracks; + public TimeRanges buffered; + public java.lang.String mode; + public double timestampOffset; + public java.lang.Boolean updating; + public VideoTrackList videoTracks; + native public void abort(); + native public void appendBuffer(ArrayBuffer data); + native public void appendBuffer(ArrayBufferView data); + native public void appendStream(MSStream stream, double maxSize); + native public void remove(double start, double end); + public static SourceBuffer prototype; + public SourceBuffer(){} + native public void appendStream(MSStream stream); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SourceBufferList.java b/core-lib/es6/src/main/java/def/dom/SourceBufferList.java new file mode 100644 index 00000000..4acd41e9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SourceBufferList.java @@ -0,0 +1,13 @@ +package def.dom; +@jsweet.lang.SyntacticIterable +public class SourceBufferList { + public double length; + native public SourceBuffer item(double index); + native public SourceBuffer $get(double index); + public static SourceBufferList prototype; + public SourceBufferList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/StereoPannerNode.java b/core-lib/es6/src/main/java/def/dom/StereoPannerNode.java new file mode 100644 index 00000000..41611371 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StereoPannerNode.java @@ -0,0 +1,8 @@ +package def.dom; + +public class StereoPannerNode extends AudioNode { + public AudioParam pan; + public static StereoPannerNode prototype; + public StereoPannerNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Storage.java b/core-lib/es6/src/main/java/def/dom/Storage.java new file mode 100644 index 00000000..9dbd377f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Storage.java @@ -0,0 +1,21 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class Storage extends Iterable { + public double length; + native public void clear(); + native public java.lang.Object getItem(java.lang.String key); + native public java.lang.String key(double index); + native public void removeItem(java.lang.String key); + native public void setItem(java.lang.String key, java.lang.String data); + native public java.lang.Object $get(java.lang.String key); + native public java.lang.String $get(double index); + public static Storage prototype; + public Storage(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/StorageEvent.java b/core-lib/es6/src/main/java/def/dom/StorageEvent.java new file mode 100644 index 00000000..de23e64b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StorageEvent.java @@ -0,0 +1,13 @@ +package def.dom; + +public class StorageEvent extends Event { + public java.lang.String key; + public java.lang.Object newValue; + public java.lang.Object oldValue; + public Storage storageArea; + public java.lang.String url; + native public void initStorageEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.String keyArg, java.lang.Object oldValueArg, java.lang.Object newValueArg, java.lang.String urlArg, Storage storageAreaArg); + public static StorageEvent prototype; + public StorageEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/StoreExceptionsInformation.java b/core-lib/es6/src/main/java/def/dom/StoreExceptionsInformation.java new file mode 100644 index 00000000..2238cb93 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StoreExceptionsInformation.java @@ -0,0 +1,12 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class StoreExceptionsInformation extends ExceptionInformation { + @jsweet.lang.Optional + public java.lang.String siteName; + @jsweet.lang.Optional + public java.lang.String explanationString; + @jsweet.lang.Optional + public java.lang.String detailURI; +} + diff --git a/core-lib/es6/src/main/java/def/dom/StoreSiteSpecificExceptionsInformation.java b/core-lib/es6/src/main/java/def/dom/StoreSiteSpecificExceptionsInformation.java new file mode 100644 index 00000000..99d705df --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StoreSiteSpecificExceptionsInformation.java @@ -0,0 +1,7 @@ +package def.dom; +@jsweet.lang.Interface +public abstract class StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation { + @jsweet.lang.Optional + public java.lang.String[] arrayOfDomainStrings; +} + diff --git a/core-lib/es6/src/main/java/def/dom/StyleMedia.java b/core-lib/es6/src/main/java/def/dom/StyleMedia.java new file mode 100644 index 00000000..1cadcb95 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StyleMedia.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class StyleMedia extends def.js.Object { + public java.lang.String type; + native public java.lang.Boolean matchMedium(java.lang.String mediaquery); + public static StyleMedia prototype; + public StyleMedia(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/StyleSheet.java b/core-lib/es6/src/main/java/def/dom/StyleSheet.java new file mode 100644 index 00000000..edc9f588 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StyleSheet.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Object; + +public class StyleSheet extends def.js.Object { + public java.lang.Boolean disabled; + public java.lang.String href; + public MediaList media; + public Node ownerNode; + public StyleSheet parentStyleSheet; + public java.lang.String title; + public java.lang.String type; + public static StyleSheet prototype; + public StyleSheet(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/StyleSheetList.java b/core-lib/es6/src/main/java/def/dom/StyleSheetList.java new file mode 100644 index 00000000..ab377741 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StyleSheetList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class StyleSheetList extends Iterable { + public double length; + native public StyleSheet item(double index); + native public StyleSheet $get(double index); + public static StyleSheetList prototype; + public StyleSheetList(){} + native public StyleSheet item(); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/StyleSheetPageList.java b/core-lib/es6/src/main/java/def/dom/StyleSheetPageList.java new file mode 100644 index 00000000..93bdf864 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/StyleSheetPageList.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class StyleSheetPageList extends Iterable { + public double length; + native public CSSPageRule item(double index); + native public CSSPageRule $get(double index); + public static StyleSheetPageList prototype; + public StyleSheetPageList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/SubtleCrypto.java b/core-lib/es6/src/main/java/def/dom/SubtleCrypto.java new file mode 100644 index 00000000..48155b9b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/SubtleCrypto.java @@ -0,0 +1,37 @@ +package def.dom; + +import def.js.ArrayBufferView; +import def.js.Object; + +public class SubtleCrypto extends def.js.Object { + native public java.lang.Object decrypt(java.lang.String algorithm, CryptoKey key, ArrayBufferView data); + native public java.lang.Object decrypt(Algorithm algorithm, CryptoKey key, ArrayBufferView data); + native public java.lang.Object deriveBits(java.lang.String algorithm, CryptoKey baseKey, double length); + native public java.lang.Object deriveBits(Algorithm algorithm, CryptoKey baseKey, double length); + native public java.lang.Object deriveKey(java.lang.String algorithm, CryptoKey baseKey, java.lang.String derivedKeyType, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object deriveKey(java.lang.String algorithm, CryptoKey baseKey, Algorithm derivedKeyType, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object deriveKey(Algorithm algorithm, CryptoKey baseKey, java.lang.String derivedKeyType, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object deriveKey(Algorithm algorithm, CryptoKey baseKey, Algorithm derivedKeyType, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object digest(java.lang.String algorithm, ArrayBufferView data); + native public java.lang.Object digest(Algorithm algorithm, ArrayBufferView data); + native public java.lang.Object encrypt(java.lang.String algorithm, CryptoKey key, ArrayBufferView data); + native public java.lang.Object encrypt(Algorithm algorithm, CryptoKey key, ArrayBufferView data); + native public java.lang.Object exportKey(java.lang.String format, CryptoKey key); + native public java.lang.Object generateKey(java.lang.String algorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object generateKey(Algorithm algorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object importKey(java.lang.String format, ArrayBufferView keyData, java.lang.String algorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object importKey(java.lang.String format, ArrayBufferView keyData, Algorithm algorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object sign(java.lang.String algorithm, CryptoKey key, ArrayBufferView data); + native public java.lang.Object sign(Algorithm algorithm, CryptoKey key, ArrayBufferView data); + native public java.lang.Object unwrapKey(java.lang.String format, ArrayBufferView wrappedKey, CryptoKey unwrappingKey, java.lang.String unwrapAlgorithm, java.lang.String unwrappedKeyAlgorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object unwrapKey(java.lang.String format, ArrayBufferView wrappedKey, CryptoKey unwrappingKey, java.lang.String unwrapAlgorithm, Algorithm unwrappedKeyAlgorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object unwrapKey(java.lang.String format, ArrayBufferView wrappedKey, CryptoKey unwrappingKey, Algorithm unwrapAlgorithm, java.lang.String unwrappedKeyAlgorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object unwrapKey(java.lang.String format, ArrayBufferView wrappedKey, CryptoKey unwrappingKey, Algorithm unwrapAlgorithm, Algorithm unwrappedKeyAlgorithm, java.lang.Boolean extractable, java.lang.String[] keyUsages); + native public java.lang.Object verify(java.lang.String algorithm, CryptoKey key, ArrayBufferView signature, ArrayBufferView data); + native public java.lang.Object verify(Algorithm algorithm, CryptoKey key, ArrayBufferView signature, ArrayBufferView data); + native public java.lang.Object wrapKey(java.lang.String format, CryptoKey key, CryptoKey wrappingKey, java.lang.String wrapAlgorithm); + native public java.lang.Object wrapKey(java.lang.String format, CryptoKey key, CryptoKey wrappingKey, Algorithm wrapAlgorithm); + public static SubtleCrypto prototype; + public SubtleCrypto(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Text.java b/core-lib/es6/src/main/java/def/dom/Text.java new file mode 100644 index 00000000..67b31cb9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Text.java @@ -0,0 +1,10 @@ +package def.dom; + +public class Text extends CharacterData { + public java.lang.String wholeText; + native public Text replaceWholeText(java.lang.String content); + native public Text splitText(double offset); + public static Text prototype; + public Text(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextEvent.java b/core-lib/es6/src/main/java/def/dom/TextEvent.java new file mode 100644 index 00000000..2828ac71 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextEvent.java @@ -0,0 +1,21 @@ +package def.dom; + +public class TextEvent extends UIEvent { + public java.lang.String data; + public double inputMethod; + public java.lang.String locale; + native public void initTextEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, java.lang.String dataArg, double inputMethod, java.lang.String locale); + public double DOM_INPUT_METHOD_DROP; + public double DOM_INPUT_METHOD_HANDWRITING; + public double DOM_INPUT_METHOD_IME; + public double DOM_INPUT_METHOD_KEYBOARD; + public double DOM_INPUT_METHOD_MULTIMODAL; + public double DOM_INPUT_METHOD_OPTION; + public double DOM_INPUT_METHOD_PASTE; + public double DOM_INPUT_METHOD_SCRIPT; + public double DOM_INPUT_METHOD_UNKNOWN; + public double DOM_INPUT_METHOD_VOICE; + public static TextEvent prototype; + public TextEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextMetrics.java b/core-lib/es6/src/main/java/def/dom/TextMetrics.java new file mode 100644 index 00000000..724cf105 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextMetrics.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class TextMetrics extends def.js.Object { + public double width; + public static TextMetrics prototype; + public TextMetrics(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextRange.java b/core-lib/es6/src/main/java/def/dom/TextRange.java new file mode 100644 index 00000000..6fa7f310 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextRange.java @@ -0,0 +1,55 @@ +package def.dom; + +import def.js.Object; + +public class TextRange extends def.js.Object { + public double boundingHeight; + public double boundingLeft; + public double boundingTop; + public double boundingWidth; + public java.lang.String htmlText; + public double offsetLeft; + public double offsetTop; + public java.lang.String text; + native public void collapse(java.lang.Boolean start); + native public double compareEndPoints(java.lang.String how, TextRange sourceRange); + native public TextRange duplicate(); + native public java.lang.Boolean execCommand(java.lang.String cmdID, java.lang.Boolean showUI, java.lang.Object value); + native public java.lang.Boolean execCommandShowHelp(java.lang.String cmdID); + native public java.lang.Boolean expand(java.lang.String Unit); + native public java.lang.Boolean findText(java.lang.String string, double count, double flags); + native public java.lang.String getBookmark(); + native public ClientRect getBoundingClientRect(); + native public ClientRectList getClientRects(); + native public java.lang.Boolean inRange(TextRange range); + native public java.lang.Boolean isEqual(TextRange range); + native public double move(java.lang.String unit, double count); + native public double moveEnd(java.lang.String unit, double count); + native public double moveStart(java.lang.String unit, double count); + native public java.lang.Boolean moveToBookmark(java.lang.String bookmark); + native public void moveToElementText(Element element); + native public void moveToPoint(double x, double y); + native public Element parentElement(); + native public void pasteHTML(java.lang.String html); + native public java.lang.Boolean queryCommandEnabled(java.lang.String cmdID); + native public java.lang.Boolean queryCommandIndeterm(java.lang.String cmdID); + native public java.lang.Boolean queryCommandState(java.lang.String cmdID); + native public java.lang.Boolean queryCommandSupported(java.lang.String cmdID); + native public java.lang.String queryCommandText(java.lang.String cmdID); + native public java.lang.Object queryCommandValue(java.lang.String cmdID); + native public void scrollIntoView(java.lang.Boolean fStart); + native public void select(); + native public void setEndPoint(java.lang.String how, TextRange SourceRange); + public static TextRange prototype; + public TextRange(){} + native public void collapse(); + native public java.lang.Boolean execCommand(java.lang.String cmdID, java.lang.Boolean showUI); + native public java.lang.Boolean execCommand(java.lang.String cmdID); + native public java.lang.Boolean findText(java.lang.String string, double count); + native public java.lang.Boolean findText(java.lang.String string); + native public double move(java.lang.String unit); + native public double moveEnd(java.lang.String unit); + native public double moveStart(java.lang.String unit); + native public void scrollIntoView(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextRangeCollection.java b/core-lib/es6/src/main/java/def/dom/TextRangeCollection.java new file mode 100644 index 00000000..f18f774c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextRangeCollection.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class TextRangeCollection extends Iterable { + public double length; + native public TextRange item(double index); + native public TextRange $get(double index); + public static TextRangeCollection prototype; + public TextRangeCollection(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextStreamBase.java b/core-lib/es6/src/main/java/def/dom/TextStreamBase.java new file mode 100644 index 00000000..ec038e3e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextStreamBase.java @@ -0,0 +1,22 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class TextStreamBase extends def.js.Object { + /** + * The column number of the current character position in an input stream. + */ + public double Column; + /** + * The current line number in an input stream. + */ + public double Line; + /** + * Closes a text stream. + * It is not necessary to close standard streams; they close automatically when the process ends. If + * you close a standard stream, be aware that any other pointers to that standard stream become invalid. + */ + native public void Close(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextStreamReader.java b/core-lib/es6/src/main/java/def/dom/TextStreamReader.java new file mode 100644 index 00000000..c401e9f4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextStreamReader.java @@ -0,0 +1,41 @@ +package def.dom; +@jsweet.lang.Interface +public abstract class TextStreamReader extends TextStreamBase { + /** + * Returns a specified number of characters from an input stream, starting at the current pointer position. + * Does not return until the ENTER key is pressed. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + native public java.lang.String Read(double characters); + /** + * Returns all characters from an input stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + native public java.lang.String ReadAll(); + /** + * Returns an entire line from an input stream. + * Although this method extracts the newline character, it does not add it to the returned string. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + native public java.lang.String ReadLine(); + /** + * Skips a specified number of characters when reading from an input text stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.) + */ + native public void Skip(double characters); + /** + * Skips the next line when reading from an input text stream. + * Can only be used on a stream in reading mode, not writing or appending mode. + */ + native public void SkipLine(); + /** + * Indicates whether the stream pointer position is at the end of a line. + */ + public java.lang.Boolean AtEndOfLine; + /** + * Indicates whether the stream pointer position is at the end of a stream. + */ + public java.lang.Boolean AtEndOfStream; +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextStreamWriter.java b/core-lib/es6/src/main/java/def/dom/TextStreamWriter.java new file mode 100644 index 00000000..f08b0395 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextStreamWriter.java @@ -0,0 +1,17 @@ +package def.dom; +@jsweet.lang.Interface +public abstract class TextStreamWriter extends TextStreamBase { + /** + * Sends a string to an output stream. + */ + native public void Write(java.lang.String s); + /** + * Sends a specified number of blank lines (newline characters) to an output stream. + */ + native public void WriteBlankLines(double intLines); + /** + * Sends a string followed by a newline character to an output stream. + */ + native public void WriteLine(java.lang.String s); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextTrack.java b/core-lib/es6/src/main/java/def/dom/TextTrack.java new file mode 100644 index 00000000..0b7c681f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextTrack.java @@ -0,0 +1,42 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.cuechange; +import def.js.StringTypes.error; +import def.js.StringTypes.load; + +public class TextTrack extends EventTarget { + public TextTrackCueList activeCues; + public TextTrackCueList cues; + public java.lang.String inBandMetadataTrackDispatchType; + public java.lang.String kind; + public java.lang.String label; + public java.lang.String language; + public java.lang.Object mode; + public java.util.function.Function oncuechange; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public double readyState; + native public void addCue(TextTrackCue cue); + native public void removeCue(TextTrackCue cue); + public double DISABLED; + public double ERROR; + public double HIDDEN; + public double LOADED; + public double LOADING; + public double NONE; + public double SHOWING; + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static TextTrack prototype; + public TextTrack(){} + native public void addEventListener(def.js.StringTypes.cuechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextTrackCue.java b/core-lib/es6/src/main/java/def/dom/TextTrackCue.java new file mode 100644 index 00000000..7bc47e50 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextTrackCue.java @@ -0,0 +1,29 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.enter; +import def.js.StringTypes.exit; + +public class TextTrackCue extends EventTarget { + public double endTime; + public java.lang.String id; + public java.util.function.Function onenter; + public java.util.function.Function onexit; + public java.lang.Boolean pauseOnExit; + public double startTime; + public java.lang.String text; + public TextTrack track; + native public DocumentFragment getCueAsHTML(); + native public void addEventListener(def.js.StringTypes.enter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.exit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static TextTrackCue prototype; + public TextTrackCue(double startTime, double endTime, java.lang.String text){} + native public void addEventListener(def.js.StringTypes.enter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.exit type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + protected TextTrackCue(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextTrackCueList.java b/core-lib/es6/src/main/java/def/dom/TextTrackCueList.java new file mode 100644 index 00000000..04bb5675 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextTrackCueList.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class TextTrackCueList extends Iterable { + public double length; + native public TextTrackCue getCueById(java.lang.String id); + native public TextTrackCue item(double index); + native public TextTrackCue $get(double index); + public static TextTrackCueList prototype; + public TextTrackCueList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TextTrackList.java b/core-lib/es6/src/main/java/def/dom/TextTrackList.java new file mode 100644 index 00000000..94a502f9 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TextTrackList.java @@ -0,0 +1,24 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.addtrack; + +@jsweet.lang.SyntacticIterable +public class TextTrackList { + public double length; + public java.util.function.Function onaddtrack; + native public TextTrack item(double index); + native public void addEventListener(def.js.StringTypes.addtrack type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public TextTrack $get(double index); + public static TextTrackList prototype; + public TextTrackList(){} + native public void addEventListener(def.js.StringTypes.addtrack type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TimeRanges.java b/core-lib/es6/src/main/java/def/dom/TimeRanges.java new file mode 100644 index 00000000..c9764b61 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TimeRanges.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class TimeRanges extends def.js.Object { + public double length; + native public double end(double index); + native public double start(double index); + public static TimeRanges prototype; + public TimeRanges(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/Touch.java b/core-lib/es6/src/main/java/def/dom/Touch.java new file mode 100644 index 00000000..8d69aadf --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Touch.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class Touch extends def.js.Object { + public double clientX; + public double clientY; + public double identifier; + public double pageX; + public double pageY; + public double screenX; + public double screenY; + public EventTarget target; + public static Touch prototype; + public Touch(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TouchEvent.java b/core-lib/es6/src/main/java/def/dom/TouchEvent.java new file mode 100644 index 00000000..87807c56 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TouchEvent.java @@ -0,0 +1,14 @@ +package def.dom; + +public class TouchEvent extends UIEvent { + public java.lang.Boolean altKey; + public TouchList changedTouches; + public java.lang.Boolean ctrlKey; + public java.lang.Boolean metaKey; + public java.lang.Boolean shiftKey; + public TouchList targetTouches; + public TouchList touches; + public static TouchEvent prototype; + public TouchEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TouchList.java b/core-lib/es6/src/main/java/def/dom/TouchList.java new file mode 100644 index 00000000..9fe56fcc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TouchList.java @@ -0,0 +1,16 @@ +package def.dom; + +import def.js.Iterable; + +@jsweet.lang.SyntacticIterable +public class TouchList extends Iterable { + public double length; + native public Touch item(double index); + native public Touch $get(double index); + public static TouchList prototype; + public TouchList(){} + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/TrackEvent.java b/core-lib/es6/src/main/java/def/dom/TrackEvent.java new file mode 100644 index 00000000..669f6b94 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TrackEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class TrackEvent extends Event { + public java.lang.Object track; + public static TrackEvent prototype; + public TrackEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TransitionEvent.java b/core-lib/es6/src/main/java/def/dom/TransitionEvent.java new file mode 100644 index 00000000..1ab95e38 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TransitionEvent.java @@ -0,0 +1,10 @@ +package def.dom; + +public class TransitionEvent extends Event { + public double elapsedTime; + public java.lang.String propertyName; + native public void initTransitionEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, java.lang.String propertyNameArg, double elapsedTimeArg); + public static TransitionEvent prototype; + public TransitionEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/TreeWalker.java b/core-lib/es6/src/main/java/def/dom/TreeWalker.java new file mode 100644 index 00000000..2489a6b8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/TreeWalker.java @@ -0,0 +1,21 @@ +package def.dom; + +import def.js.Object; + +public class TreeWalker extends def.js.Object { + public Node currentNode; + public java.lang.Boolean expandEntityReferences; + public NodeFilter filter; + public Node root; + public double whatToShow; + native public Node firstChild(); + native public Node lastChild(); + native public Node nextNode(); + native public Node nextSibling(); + native public Node parentNode(); + native public Node previousNode(); + native public Node previousSibling(); + public static TreeWalker prototype; + public TreeWalker(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/UIEvent.java b/core-lib/es6/src/main/java/def/dom/UIEvent.java new file mode 100644 index 00000000..86881259 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/UIEvent.java @@ -0,0 +1,12 @@ +package def.dom; + +public class UIEvent extends Event { + public double detail; + public Window view; + native public void initUIEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg); + public static UIEvent prototype; + public UIEvent(java.lang.String type, UIEventInit eventInitDict){} + public UIEvent(java.lang.String type){} + protected UIEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/UIEventInit.java b/core-lib/es6/src/main/java/def/dom/UIEventInit.java new file mode 100644 index 00000000..6849d8d8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/UIEventInit.java @@ -0,0 +1,10 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class UIEventInit extends EventInit { + @jsweet.lang.Optional + public Window view; + @jsweet.lang.Optional + public double detail; +} + diff --git a/core-lib/es6/src/main/java/def/dom/URL.java b/core-lib/es6/src/main/java/def/dom/URL.java new file mode 100644 index 00000000..20a60e66 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/URL.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class URL extends def.js.Object { + native public static java.lang.String createObjectURL(java.lang.Object object, ObjectURLOptions options); + native public static void revokeObjectURL(java.lang.String url); + native public static java.lang.String createObjectURL(java.lang.Object object); +} + diff --git a/core-lib/es6/src/main/java/def/dom/UnviewableContentIdentifiedEvent.java b/core-lib/es6/src/main/java/def/dom/UnviewableContentIdentifiedEvent.java new file mode 100644 index 00000000..74989289 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/UnviewableContentIdentifiedEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { + public java.lang.String mediaType; + public static UnviewableContentIdentifiedEvent prototype; + public UnviewableContentIdentifiedEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/ValidityState.java b/core-lib/es6/src/main/java/def/dom/ValidityState.java new file mode 100644 index 00000000..c127d986 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/ValidityState.java @@ -0,0 +1,19 @@ +package def.dom; + +import def.js.Object; + +public class ValidityState extends def.js.Object { + public java.lang.Boolean badInput; + public java.lang.Boolean customError; + public java.lang.Boolean patternMismatch; + public java.lang.Boolean rangeOverflow; + public java.lang.Boolean rangeUnderflow; + public java.lang.Boolean stepMismatch; + public java.lang.Boolean tooLong; + public java.lang.Boolean typeMismatch; + public java.lang.Boolean valid; + public java.lang.Boolean valueMissing; + public static ValidityState prototype; + public ValidityState(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/VideoTrack.java b/core-lib/es6/src/main/java/def/dom/VideoTrack.java new file mode 100644 index 00000000..174da6f1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/VideoTrack.java @@ -0,0 +1,15 @@ +package def.dom; + +import def.js.Object; + +public class VideoTrack extends def.js.Object { + public java.lang.String id; + public java.lang.String kind; + public java.lang.String label; + public java.lang.String language; + public java.lang.Boolean selected; + public SourceBuffer sourceBuffer; + public static VideoTrack prototype; + public VideoTrack(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/VideoTrackList.java b/core-lib/es6/src/main/java/def/dom/VideoTrackList.java new file mode 100644 index 00000000..b363944b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/VideoTrackList.java @@ -0,0 +1,34 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.addtrack; +import def.js.StringTypes.change; +import def.js.StringTypes.removetrack; + +@jsweet.lang.SyntacticIterable +public class VideoTrackList { + public double length; + public java.util.function.Function onaddtrack; + public java.util.function.Function onchange; + public java.util.function.Function onremovetrack; + public double selectedIndex; + native public VideoTrack getTrackById(java.lang.String id); + native public VideoTrack item(double index); + native public void addEventListener(def.js.StringTypes.addtrack type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.removetrack type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public VideoTrack $get(double index); + public static VideoTrackList prototype; + public VideoTrackList(){} + native public void addEventListener(def.js.StringTypes.addtrack type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.removetrack type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/WEBGL_compressed_texture_s3tc.java b/core-lib/es6/src/main/java/def/dom/WEBGL_compressed_texture_s3tc.java new file mode 100644 index 00000000..7e3057d7 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WEBGL_compressed_texture_s3tc.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class WEBGL_compressed_texture_s3tc extends def.js.Object { + public double COMPRESSED_RGBA_S3TC_DXT1_EXT; + public double COMPRESSED_RGBA_S3TC_DXT3_EXT; + public double COMPRESSED_RGBA_S3TC_DXT5_EXT; + public double COMPRESSED_RGB_S3TC_DXT1_EXT; + public static WEBGL_compressed_texture_s3tc prototype; + public WEBGL_compressed_texture_s3tc(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WEBGL_debug_renderer_info.java b/core-lib/es6/src/main/java/def/dom/WEBGL_debug_renderer_info.java new file mode 100644 index 00000000..0092acef --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WEBGL_debug_renderer_info.java @@ -0,0 +1,11 @@ +package def.dom; + +import def.js.Object; + +public class WEBGL_debug_renderer_info extends def.js.Object { + public double UNMASKED_RENDERER_WEBGL; + public double UNMASKED_VENDOR_WEBGL; + public static WEBGL_debug_renderer_info prototype; + public WEBGL_debug_renderer_info(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WEBGL_depth_texture.java b/core-lib/es6/src/main/java/def/dom/WEBGL_depth_texture.java new file mode 100644 index 00000000..3c564b57 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WEBGL_depth_texture.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class WEBGL_depth_texture extends def.js.Object { + public double UNSIGNED_INT_24_8_WEBGL; + public static WEBGL_depth_texture prototype; + public WEBGL_depth_texture(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WaveShaperNode.java b/core-lib/es6/src/main/java/def/dom/WaveShaperNode.java new file mode 100644 index 00000000..a5faa1fb --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WaveShaperNode.java @@ -0,0 +1,9 @@ +package def.dom; + +public class WaveShaperNode extends AudioNode { + public java.lang.Object curve; + public java.lang.String oversample; + public static WaveShaperNode prototype; + public WaveShaperNode(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLActiveInfo.java b/core-lib/es6/src/main/java/def/dom/WebGLActiveInfo.java new file mode 100644 index 00000000..82a40ef8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLActiveInfo.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class WebGLActiveInfo extends def.js.Object { + public java.lang.String name; + public double size; + public double type; + public static WebGLActiveInfo prototype; + public WebGLActiveInfo(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLBuffer.java b/core-lib/es6/src/main/java/def/dom/WebGLBuffer.java new file mode 100644 index 00000000..09ac4264 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLBuffer.java @@ -0,0 +1,6 @@ +package def.dom; +public class WebGLBuffer extends WebGLObject { + public static WebGLBuffer prototype; + public WebGLBuffer(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLContextAttributes.java b/core-lib/es6/src/main/java/def/dom/WebGLContextAttributes.java new file mode 100644 index 00000000..b8541506 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLContextAttributes.java @@ -0,0 +1,20 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class WebGLContextAttributes extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean alpha; + @jsweet.lang.Optional + public java.lang.Boolean depth; + @jsweet.lang.Optional + public java.lang.Boolean stencil; + @jsweet.lang.Optional + public java.lang.Boolean antialias; + @jsweet.lang.Optional + public java.lang.Boolean premultipliedAlpha; + @jsweet.lang.Optional + public java.lang.Boolean preserveDrawingBuffer; +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLContextEvent.java b/core-lib/es6/src/main/java/def/dom/WebGLContextEvent.java new file mode 100644 index 00000000..242d1474 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLContextEvent.java @@ -0,0 +1,8 @@ +package def.dom; + +public class WebGLContextEvent extends Event { + public java.lang.String statusMessage; + public static WebGLContextEvent prototype; + public WebGLContextEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLContextEventInit.java b/core-lib/es6/src/main/java/def/dom/WebGLContextEventInit.java new file mode 100644 index 00000000..54777804 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLContextEventInit.java @@ -0,0 +1,8 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class WebGLContextEventInit extends EventInit { + @jsweet.lang.Optional + public java.lang.String statusMessage; +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLFramebuffer.java b/core-lib/es6/src/main/java/def/dom/WebGLFramebuffer.java new file mode 100644 index 00000000..6d5f22d5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLFramebuffer.java @@ -0,0 +1,6 @@ +package def.dom; +public class WebGLFramebuffer extends WebGLObject { + public static WebGLFramebuffer prototype; + public WebGLFramebuffer(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLObject.java b/core-lib/es6/src/main/java/def/dom/WebGLObject.java new file mode 100644 index 00000000..f1e12961 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLObject.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class WebGLObject extends def.js.Object { + public static WebGLObject prototype; + public WebGLObject(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLProgram.java b/core-lib/es6/src/main/java/def/dom/WebGLProgram.java new file mode 100644 index 00000000..77a7aa28 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLProgram.java @@ -0,0 +1,6 @@ +package def.dom; +public class WebGLProgram extends WebGLObject { + public static WebGLProgram prototype; + public WebGLProgram(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLRenderbuffer.java b/core-lib/es6/src/main/java/def/dom/WebGLRenderbuffer.java new file mode 100644 index 00000000..0f39f845 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLRenderbuffer.java @@ -0,0 +1,6 @@ +package def.dom; +public class WebGLRenderbuffer extends WebGLObject { + public static WebGLRenderbuffer prototype; + public WebGLRenderbuffer(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLRenderingContext.java b/core-lib/es6/src/main/java/def/dom/WebGLRenderingContext.java new file mode 100644 index 00000000..bcac38ef --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLRenderingContext.java @@ -0,0 +1,458 @@ +package def.dom; + +import def.js.ArrayBufferView; +import def.js.Int32Array; +import def.js.Object; + +public class WebGLRenderingContext extends def.js.Object { + public HTMLCanvasElement canvas; + public double drawingBufferHeight; + public double drawingBufferWidth; + native public void activeTexture(double texture); + native public void attachShader(WebGLProgram program, WebGLShader shader); + native public void bindAttribLocation(WebGLProgram program, double index, java.lang.String name); + native public void bindBuffer(double target, WebGLBuffer buffer); + native public void bindFramebuffer(double target, WebGLFramebuffer framebuffer); + native public void bindRenderbuffer(double target, WebGLRenderbuffer renderbuffer); + native public void bindTexture(double target, WebGLTexture texture); + native public void blendColor(double red, double green, double blue, double alpha); + native public void blendEquation(double mode); + native public void blendEquationSeparate(double modeRGB, double modeAlpha); + native public void blendFunc(double sfactor, double dfactor); + native public void blendFuncSeparate(double srcRGB, double dstRGB, double srcAlpha, double dstAlpha); + native public void bufferData(double target, double size, double usage); + native public void bufferData(double target, ArrayBufferView size, double usage); + native public void bufferData(double target, java.lang.Object size, double usage); + native public void bufferSubData(double target, double offset, ArrayBufferView data); + native public void bufferSubData(double target, double offset, java.lang.Object data); + native public double checkFramebufferStatus(double target); + native public void clear(double mask); + native public void clearColor(double red, double green, double blue, double alpha); + native public void clearDepth(double depth); + native public void clearStencil(double s); + native public void colorMask(java.lang.Boolean red, java.lang.Boolean green, java.lang.Boolean blue, java.lang.Boolean alpha); + native public void compileShader(WebGLShader shader); + native public void compressedTexImage2D(double target, double level, double internalformat, double width, double height, double border, ArrayBufferView data); + native public void compressedTexSubImage2D(double target, double level, double xoffset, double yoffset, double width, double height, double format, ArrayBufferView data); + native public void copyTexImage2D(double target, double level, double internalformat, double x, double y, double width, double height, double border); + native public void copyTexSubImage2D(double target, double level, double xoffset, double yoffset, double x, double y, double width, double height); + native public WebGLBuffer createBuffer(); + native public WebGLFramebuffer createFramebuffer(); + native public WebGLProgram createProgram(); + native public WebGLRenderbuffer createRenderbuffer(); + native public WebGLShader createShader(double type); + native public WebGLTexture createTexture(); + native public void cullFace(double mode); + native public void deleteBuffer(WebGLBuffer buffer); + native public void deleteFramebuffer(WebGLFramebuffer framebuffer); + native public void deleteProgram(WebGLProgram program); + native public void deleteRenderbuffer(WebGLRenderbuffer renderbuffer); + native public void deleteShader(WebGLShader shader); + native public void deleteTexture(WebGLTexture texture); + native public void depthFunc(double func); + native public void depthMask(java.lang.Boolean flag); + native public void depthRange(double zNear, double zFar); + native public void detachShader(WebGLProgram program, WebGLShader shader); + native public void disable(double cap); + native public void disableVertexAttribArray(double index); + native public void drawArrays(double mode, double first, double count); + native public void drawElements(double mode, double count, double type, double offset); + native public void enable(double cap); + native public void enableVertexAttribArray(double index); + native public void finish(); + native public void flush(); + native public void framebufferRenderbuffer(double target, double attachment, double renderbuffertarget, WebGLRenderbuffer renderbuffer); + native public void framebufferTexture2D(double target, double attachment, double textarget, WebGLTexture texture, double level); + native public void frontFace(double mode); + native public void generateMipmap(double target); + native public WebGLActiveInfo getActiveAttrib(WebGLProgram program, double index); + native public WebGLActiveInfo getActiveUniform(WebGLProgram program, double index); + native public WebGLShader[] getAttachedShaders(WebGLProgram program); + native public double getAttribLocation(WebGLProgram program, java.lang.String name); + native public java.lang.Object getBufferParameter(double target, double pname); + native public WebGLContextAttributes getContextAttributes(); + native public double getError(); + native public java.lang.Object getExtension(java.lang.String name); + native public java.lang.Object getFramebufferAttachmentParameter(double target, double attachment, double pname); + native public java.lang.Object getParameter(double pname); + native public java.lang.String getProgramInfoLog(WebGLProgram program); + native public java.lang.Object getProgramParameter(WebGLProgram program, double pname); + native public java.lang.Object getRenderbufferParameter(double target, double pname); + native public java.lang.String getShaderInfoLog(WebGLShader shader); + native public java.lang.Object getShaderParameter(WebGLShader shader, double pname); + native public WebGLShaderPrecisionFormat getShaderPrecisionFormat(double shadertype, double precisiontype); + native public java.lang.String getShaderSource(WebGLShader shader); + native public java.lang.String[] getSupportedExtensions(); + native public java.lang.Object getTexParameter(double target, double pname); + native public java.lang.Object getUniform(WebGLProgram program, WebGLUniformLocation location); + native public WebGLUniformLocation getUniformLocation(WebGLProgram program, java.lang.String name); + native public java.lang.Object getVertexAttrib(double index, double pname); + native public double getVertexAttribOffset(double index, double pname); + native public void hint(double target, double mode); + native public java.lang.Boolean isBuffer(WebGLBuffer buffer); + native public java.lang.Boolean isContextLost(); + native public java.lang.Boolean isEnabled(double cap); + native public java.lang.Boolean isFramebuffer(WebGLFramebuffer framebuffer); + native public java.lang.Boolean isProgram(WebGLProgram program); + native public java.lang.Boolean isRenderbuffer(WebGLRenderbuffer renderbuffer); + native public java.lang.Boolean isShader(WebGLShader shader); + native public java.lang.Boolean isTexture(WebGLTexture texture); + native public void lineWidth(double width); + native public void linkProgram(WebGLProgram program); + native public void pixelStorei(double pname, double param); + native public void polygonOffset(double factor, double units); + native public void readPixels(double x, double y, double width, double height, double format, double type, ArrayBufferView pixels); + native public void renderbufferStorage(double target, double internalformat, double width, double height); + native public void sampleCoverage(double value, java.lang.Boolean invert); + native public void scissor(double x, double y, double width, double height); + native public void shaderSource(WebGLShader shader, java.lang.String source); + native public void stencilFunc(double func, double ref, double mask); + native public void stencilFuncSeparate(double face, double func, double ref, double mask); + native public void stencilMask(double mask); + native public void stencilMaskSeparate(double face, double mask); + native public void stencilOp(double fail, double zfail, double zpass); + native public void stencilOpSeparate(double face, double fail, double zfail, double zpass); + native public void texImage2D(double target, double level, double internalformat, double width, double height, double border, double format, double type, ArrayBufferView pixels); + native public void texImage2D(double target, double level, double internalformat, double format, double type, HTMLImageElement image); + native public void texImage2D(double target, double level, double internalformat, double format, double type, HTMLCanvasElement canvas); + native public void texImage2D(double target, double level, double internalformat, double format, double type, HTMLVideoElement video); + native public void texImage2D(double target, double level, double internalformat, double format, double type, ImageData pixels); + native public void texParameterf(double target, double pname, double param); + native public void texParameteri(double target, double pname, double param); + native public void texSubImage2D(double target, double level, double xoffset, double yoffset, double width, double height, double format, double type, ArrayBufferView pixels); + native public void texSubImage2D(double target, double level, double xoffset, double yoffset, double format, double type, HTMLImageElement image); + native public void texSubImage2D(double target, double level, double xoffset, double yoffset, double format, double type, HTMLCanvasElement canvas); + native public void texSubImage2D(double target, double level, double xoffset, double yoffset, double format, double type, HTMLVideoElement video); + native public void texSubImage2D(double target, double level, double xoffset, double yoffset, double format, double type, ImageData pixels); + native public void uniform1f(WebGLUniformLocation location, double x); + native public void uniform1fv(WebGLUniformLocation location, java.lang.Object v); + native public void uniform1i(WebGLUniformLocation location, double x); + native public void uniform1iv(WebGLUniformLocation location, Int32Array v); + native public void uniform2f(WebGLUniformLocation location, double x, double y); + native public void uniform2fv(WebGLUniformLocation location, java.lang.Object v); + native public void uniform2i(WebGLUniformLocation location, double x, double y); + native public void uniform2iv(WebGLUniformLocation location, Int32Array v); + native public void uniform3f(WebGLUniformLocation location, double x, double y, double z); + native public void uniform3fv(WebGLUniformLocation location, java.lang.Object v); + native public void uniform3i(WebGLUniformLocation location, double x, double y, double z); + native public void uniform3iv(WebGLUniformLocation location, Int32Array v); + native public void uniform4f(WebGLUniformLocation location, double x, double y, double z, double w); + native public void uniform4fv(WebGLUniformLocation location, java.lang.Object v); + native public void uniform4i(WebGLUniformLocation location, double x, double y, double z, double w); + native public void uniform4iv(WebGLUniformLocation location, Int32Array v); + native public void uniformMatrix2fv(WebGLUniformLocation location, java.lang.Boolean transpose, java.lang.Object value); + native public void uniformMatrix3fv(WebGLUniformLocation location, java.lang.Boolean transpose, java.lang.Object value); + native public void uniformMatrix4fv(WebGLUniformLocation location, java.lang.Boolean transpose, java.lang.Object value); + native public void useProgram(WebGLProgram program); + native public void validateProgram(WebGLProgram program); + native public void vertexAttrib1f(double indx, double x); + native public void vertexAttrib1fv(double indx, java.lang.Object values); + native public void vertexAttrib2f(double indx, double x, double y); + native public void vertexAttrib2fv(double indx, java.lang.Object values); + native public void vertexAttrib3f(double indx, double x, double y, double z); + native public void vertexAttrib3fv(double indx, java.lang.Object values); + native public void vertexAttrib4f(double indx, double x, double y, double z, double w); + native public void vertexAttrib4fv(double indx, java.lang.Object values); + native public void vertexAttribPointer(double indx, double size, double type, java.lang.Boolean normalized, double stride, double offset); + native public void viewport(double x, double y, double width, double height); + public double ACTIVE_ATTRIBUTES; + public double ACTIVE_TEXTURE; + public double ACTIVE_UNIFORMS; + public double ALIASED_LINE_WIDTH_RANGE; + public double ALIASED_POINT_SIZE_RANGE; + public double ALPHA; + public double ALPHA_BITS; + public double ALWAYS; + public double ARRAY_BUFFER; + public double ARRAY_BUFFER_BINDING; + public double ATTACHED_SHADERS; + public double BACK; + public double BLEND; + public double BLEND_COLOR; + public double BLEND_DST_ALPHA; + public double BLEND_DST_RGB; + public double BLEND_EQUATION; + public double BLEND_EQUATION_ALPHA; + public double BLEND_EQUATION_RGB; + public double BLEND_SRC_ALPHA; + public double BLEND_SRC_RGB; + public double BLUE_BITS; + public double BOOL; + public double BOOL_VEC2; + public double BOOL_VEC3; + public double BOOL_VEC4; + public double BROWSER_DEFAULT_WEBGL; + public double BUFFER_SIZE; + public double BUFFER_USAGE; + public double BYTE; + public double CCW; + public double CLAMP_TO_EDGE; + public double COLOR_ATTACHMENT0; + public double COLOR_BUFFER_BIT; + public double COLOR_CLEAR_VALUE; + public double COLOR_WRITEMASK; + public double COMPILE_STATUS; + public double COMPRESSED_TEXTURE_FORMATS; + public double CONSTANT_ALPHA; + public double CONSTANT_COLOR; + public double CONTEXT_LOST_WEBGL; + public double CULL_FACE; + public double CULL_FACE_MODE; + public double CURRENT_PROGRAM; + public double CURRENT_VERTEX_ATTRIB; + public double CW; + public double DECR; + public double DECR_WRAP; + public double DELETE_STATUS; + public double DEPTH_ATTACHMENT; + public double DEPTH_BITS; + public double DEPTH_BUFFER_BIT; + public double DEPTH_CLEAR_VALUE; + public double DEPTH_COMPONENT; + public double DEPTH_COMPONENT16; + public double DEPTH_FUNC; + public double DEPTH_RANGE; + public double DEPTH_STENCIL; + public double DEPTH_STENCIL_ATTACHMENT; + public double DEPTH_TEST; + public double DEPTH_WRITEMASK; + public double DITHER; + public double DONT_CARE; + public double DST_ALPHA; + public double DST_COLOR; + public double DYNAMIC_DRAW; + public double ELEMENT_ARRAY_BUFFER; + public double ELEMENT_ARRAY_BUFFER_BINDING; + public double EQUAL; + public double FASTEST; + public double FLOAT; + public double FLOAT_MAT2; + public double FLOAT_MAT3; + public double FLOAT_MAT4; + public double FLOAT_VEC2; + public double FLOAT_VEC3; + public double FLOAT_VEC4; + public double FRAGMENT_SHADER; + public double FRAMEBUFFER; + public double FRAMEBUFFER_ATTACHMENT_OBJECT_NAME; + public double FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE; + public double FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; + public double FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL; + public double FRAMEBUFFER_BINDING; + public double FRAMEBUFFER_COMPLETE; + public double FRAMEBUFFER_INCOMPLETE_ATTACHMENT; + public double FRAMEBUFFER_INCOMPLETE_DIMENSIONS; + public double FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT; + public double FRAMEBUFFER_UNSUPPORTED; + public double FRONT; + public double FRONT_AND_BACK; + public double FRONT_FACE; + public double FUNC_ADD; + public double FUNC_REVERSE_SUBTRACT; + public double FUNC_SUBTRACT; + public double GENERATE_MIPMAP_HINT; + public double GEQUAL; + public double GREATER; + public double GREEN_BITS; + public double HIGH_FLOAT; + public double HIGH_INT; + public double IMPLEMENTATION_COLOR_READ_FORMAT; + public double IMPLEMENTATION_COLOR_READ_TYPE; + public double INCR; + public double INCR_WRAP; + public double INT; + public double INT_VEC2; + public double INT_VEC3; + public double INT_VEC4; + public double INVALID_ENUM; + public double INVALID_FRAMEBUFFER_OPERATION; + public double INVALID_OPERATION; + public double INVALID_VALUE; + public double INVERT; + public double KEEP; + public double LEQUAL; + public double LESS; + public double LINEAR; + public double LINEAR_MIPMAP_LINEAR; + public double LINEAR_MIPMAP_NEAREST; + public double LINES; + public double LINE_LOOP; + public double LINE_STRIP; + public double LINE_WIDTH; + public double LINK_STATUS; + public double LOW_FLOAT; + public double LOW_INT; + public double LUMINANCE; + public double LUMINANCE_ALPHA; + public double MAX_COMBINED_TEXTURE_IMAGE_UNITS; + public double MAX_CUBE_MAP_TEXTURE_SIZE; + public double MAX_FRAGMENT_UNIFORM_VECTORS; + public double MAX_RENDERBUFFER_SIZE; + public double MAX_TEXTURE_IMAGE_UNITS; + public double MAX_TEXTURE_SIZE; + public double MAX_VARYING_VECTORS; + public double MAX_VERTEX_ATTRIBS; + public double MAX_VERTEX_TEXTURE_IMAGE_UNITS; + public double MAX_VERTEX_UNIFORM_VECTORS; + public double MAX_VIEWPORT_DIMS; + public double MEDIUM_FLOAT; + public double MEDIUM_INT; + public double MIRRORED_REPEAT; + public double NEAREST; + public double NEAREST_MIPMAP_LINEAR; + public double NEAREST_MIPMAP_NEAREST; + public double NEVER; + public double NICEST; + public double NONE; + public double NOTEQUAL; + public double NO_ERROR; + public double ONE; + public double ONE_MINUS_CONSTANT_ALPHA; + public double ONE_MINUS_CONSTANT_COLOR; + public double ONE_MINUS_DST_ALPHA; + public double ONE_MINUS_DST_COLOR; + public double ONE_MINUS_SRC_ALPHA; + public double ONE_MINUS_SRC_COLOR; + public double OUT_OF_MEMORY; + public double PACK_ALIGNMENT; + public double POINTS; + public double POLYGON_OFFSET_FACTOR; + public double POLYGON_OFFSET_FILL; + public double POLYGON_OFFSET_UNITS; + public double RED_BITS; + public double RENDERBUFFER; + public double RENDERBUFFER_ALPHA_SIZE; + public double RENDERBUFFER_BINDING; + public double RENDERBUFFER_BLUE_SIZE; + public double RENDERBUFFER_DEPTH_SIZE; + public double RENDERBUFFER_GREEN_SIZE; + public double RENDERBUFFER_HEIGHT; + public double RENDERBUFFER_INTERNAL_FORMAT; + public double RENDERBUFFER_RED_SIZE; + public double RENDERBUFFER_STENCIL_SIZE; + public double RENDERBUFFER_WIDTH; + public double RENDERER; + public double REPEAT; + public double REPLACE; + public double RGB; + public double RGB565; + public double RGB5_A1; + public double RGBA; + public double RGBA4; + public double SAMPLER_2D; + public double SAMPLER_CUBE; + public double SAMPLES; + public double SAMPLE_ALPHA_TO_COVERAGE; + public double SAMPLE_BUFFERS; + public double SAMPLE_COVERAGE; + public double SAMPLE_COVERAGE_INVERT; + public double SAMPLE_COVERAGE_VALUE; + public double SCISSOR_BOX; + public double SCISSOR_TEST; + public double SHADER_TYPE; + public double SHADING_LANGUAGE_VERSION; + public double SHORT; + public double SRC_ALPHA; + public double SRC_ALPHA_SATURATE; + public double SRC_COLOR; + public double STATIC_DRAW; + public double STENCIL_ATTACHMENT; + public double STENCIL_BACK_FAIL; + public double STENCIL_BACK_FUNC; + public double STENCIL_BACK_PASS_DEPTH_FAIL; + public double STENCIL_BACK_PASS_DEPTH_PASS; + public double STENCIL_BACK_REF; + public double STENCIL_BACK_VALUE_MASK; + public double STENCIL_BACK_WRITEMASK; + public double STENCIL_BITS; + public double STENCIL_BUFFER_BIT; + public double STENCIL_CLEAR_VALUE; + public double STENCIL_FAIL; + public double STENCIL_FUNC; + public double STENCIL_INDEX; + public double STENCIL_INDEX8; + public double STENCIL_PASS_DEPTH_FAIL; + public double STENCIL_PASS_DEPTH_PASS; + public double STENCIL_REF; + public double STENCIL_TEST; + public double STENCIL_VALUE_MASK; + public double STENCIL_WRITEMASK; + public double STREAM_DRAW; + public double SUBPIXEL_BITS; + public double TEXTURE; + public double TEXTURE0; + public double TEXTURE1; + public double TEXTURE10; + public double TEXTURE11; + public double TEXTURE12; + public double TEXTURE13; + public double TEXTURE14; + public double TEXTURE15; + public double TEXTURE16; + public double TEXTURE17; + public double TEXTURE18; + public double TEXTURE19; + public double TEXTURE2; + public double TEXTURE20; + public double TEXTURE21; + public double TEXTURE22; + public double TEXTURE23; + public double TEXTURE24; + public double TEXTURE25; + public double TEXTURE26; + public double TEXTURE27; + public double TEXTURE28; + public double TEXTURE29; + public double TEXTURE3; + public double TEXTURE30; + public double TEXTURE31; + public double TEXTURE4; + public double TEXTURE5; + public double TEXTURE6; + public double TEXTURE7; + public double TEXTURE8; + public double TEXTURE9; + public double TEXTURE_2D; + public double TEXTURE_BINDING_2D; + public double TEXTURE_BINDING_CUBE_MAP; + public double TEXTURE_CUBE_MAP; + public double TEXTURE_CUBE_MAP_NEGATIVE_X; + public double TEXTURE_CUBE_MAP_NEGATIVE_Y; + public double TEXTURE_CUBE_MAP_NEGATIVE_Z; + public double TEXTURE_CUBE_MAP_POSITIVE_X; + public double TEXTURE_CUBE_MAP_POSITIVE_Y; + public double TEXTURE_CUBE_MAP_POSITIVE_Z; + public double TEXTURE_MAG_FILTER; + public double TEXTURE_MIN_FILTER; + public double TEXTURE_WRAP_S; + public double TEXTURE_WRAP_T; + public double TRIANGLES; + public double TRIANGLE_FAN; + public double TRIANGLE_STRIP; + public double UNPACK_ALIGNMENT; + public double UNPACK_COLORSPACE_CONVERSION_WEBGL; + public double UNPACK_FLIP_Y_WEBGL; + public double UNPACK_PREMULTIPLY_ALPHA_WEBGL; + public double UNSIGNED_BYTE; + public double UNSIGNED_INT; + public double UNSIGNED_SHORT; + public double UNSIGNED_SHORT_4_4_4_4; + public double UNSIGNED_SHORT_5_5_5_1; + public double UNSIGNED_SHORT_5_6_5; + public double VALIDATE_STATUS; + public double VENDOR; + public double VERSION; + public double VERTEX_ATTRIB_ARRAY_BUFFER_BINDING; + public double VERTEX_ATTRIB_ARRAY_ENABLED; + public double VERTEX_ATTRIB_ARRAY_NORMALIZED; + public double VERTEX_ATTRIB_ARRAY_POINTER; + public double VERTEX_ATTRIB_ARRAY_SIZE; + public double VERTEX_ATTRIB_ARRAY_STRIDE; + public double VERTEX_ATTRIB_ARRAY_TYPE; + public double VERTEX_SHADER; + public double VIEWPORT; + public double ZERO; + public static WebGLRenderingContext prototype; + public WebGLRenderingContext(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLShader.java b/core-lib/es6/src/main/java/def/dom/WebGLShader.java new file mode 100644 index 00000000..ba8eeec8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLShader.java @@ -0,0 +1,6 @@ +package def.dom; +public class WebGLShader extends WebGLObject { + public static WebGLShader prototype; + public WebGLShader(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLShaderPrecisionFormat.java b/core-lib/es6/src/main/java/def/dom/WebGLShaderPrecisionFormat.java new file mode 100644 index 00000000..3998279b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLShaderPrecisionFormat.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +public class WebGLShaderPrecisionFormat extends def.js.Object { + public double precision; + public double rangeMax; + public double rangeMin; + public static WebGLShaderPrecisionFormat prototype; + public WebGLShaderPrecisionFormat(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLTexture.java b/core-lib/es6/src/main/java/def/dom/WebGLTexture.java new file mode 100644 index 00000000..7cf22c11 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLTexture.java @@ -0,0 +1,6 @@ +package def.dom; +public class WebGLTexture extends WebGLObject { + public static WebGLTexture prototype; + public WebGLTexture(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebGLUniformLocation.java b/core-lib/es6/src/main/java/def/dom/WebGLUniformLocation.java new file mode 100644 index 00000000..f38f5964 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebGLUniformLocation.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +public class WebGLUniformLocation extends def.js.Object { + public static WebGLUniformLocation prototype; + public WebGLUniformLocation(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebKitCSSMatrix.java b/core-lib/es6/src/main/java/def/dom/WebKitCSSMatrix.java new file mode 100644 index 00000000..baa739ad --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebKitCSSMatrix.java @@ -0,0 +1,47 @@ +package def.dom; + +import def.js.Object; + +public class WebKitCSSMatrix extends def.js.Object { + public double a; + public double b; + public double c; + public double d; + public double e; + public double f; + public double m11; + public double m12; + public double m13; + public double m14; + public double m21; + public double m22; + public double m23; + public double m24; + public double m31; + public double m32; + public double m33; + public double m34; + public double m41; + public double m42; + public double m43; + public double m44; + native public WebKitCSSMatrix inverse(); + native public WebKitCSSMatrix multiply(WebKitCSSMatrix secondMatrix); + native public WebKitCSSMatrix rotate(double angleX, double angleY, double angleZ); + native public WebKitCSSMatrix rotateAxisAngle(double x, double y, double z, double angle); + native public WebKitCSSMatrix scale(double scaleX, double scaleY, double scaleZ); + native public void setMatrixValue(java.lang.String value); + native public WebKitCSSMatrix skewX(double angle); + native public WebKitCSSMatrix skewY(double angle); + native public java.lang.String toString(); + native public WebKitCSSMatrix translate(double x, double y, double z); + public static WebKitCSSMatrix prototype; + public WebKitCSSMatrix(java.lang.String text){} + native public WebKitCSSMatrix rotate(double angleX, double angleY); + native public WebKitCSSMatrix rotate(double angleX); + native public WebKitCSSMatrix scale(double scaleX, double scaleY); + native public WebKitCSSMatrix scale(double scaleX); + native public WebKitCSSMatrix translate(double x, double y); + public WebKitCSSMatrix(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebKitPoint.java b/core-lib/es6/src/main/java/def/dom/WebKitPoint.java new file mode 100644 index 00000000..336f69dc --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebKitPoint.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class WebKitPoint extends def.js.Object { + public double x; + public double y; + public static WebKitPoint prototype; + public WebKitPoint(double x, double y){} + public WebKitPoint(double x){} + public WebKitPoint(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WebSocket.java b/core-lib/es6/src/main/java/def/dom/WebSocket.java new file mode 100644 index 00000000..d12da43a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WebSocket.java @@ -0,0 +1,46 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.close; +import def.js.StringTypes.error; +import def.js.StringTypes.message; +import def.js.StringTypes.open; + +public class WebSocket extends EventTarget { + public java.lang.String binaryType; + public double bufferedAmount; + public java.lang.String extensions; + public java.util.function.Function onclose; + public java.util.function.Function onerror; + public java.util.function.Function onmessage; + public java.util.function.Function onopen; + public java.lang.String protocol; + public double readyState; + public java.lang.String url; + native public void close(double code, java.lang.String reason); + native public void send(java.lang.Object data); + public double CLOSED; + public double CLOSING; + public double CONNECTING; + public double OPEN; + native public void addEventListener(def.js.StringTypes.close type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.open type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public static WebSocket prototype; + public WebSocket(java.lang.String url, java.lang.String protocols){} + public WebSocket(java.lang.String url, java.lang.Object protocols){} + native public void close(double code); + native public void close(); + native public void addEventListener(def.js.StringTypes.close type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.open type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + public WebSocket(java.lang.String url){} + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + protected WebSocket(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WheelEvent.java b/core-lib/es6/src/main/java/def/dom/WheelEvent.java new file mode 100644 index 00000000..3aaf6bed --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WheelEvent.java @@ -0,0 +1,18 @@ +package def.dom; + +public class WheelEvent extends MouseEvent { + public double deltaMode; + public double deltaX; + public double deltaY; + public double deltaZ; + native public void getCurrentPoint(Element element); + native public void initWheelEvent(java.lang.String typeArg, java.lang.Boolean canBubbleArg, java.lang.Boolean cancelableArg, Window viewArg, double detailArg, double screenXArg, double screenYArg, double clientXArg, double clientYArg, double buttonArg, EventTarget relatedTargetArg, java.lang.String modifiersListArg, double deltaXArg, double deltaYArg, double deltaZArg, double deltaMode); + public double DOM_DELTA_LINE; + public double DOM_DELTA_PAGE; + public double DOM_DELTA_PIXEL; + public static WheelEvent prototype; + public WheelEvent(java.lang.String typeArg, WheelEventInit eventInitDict){} + public WheelEvent(java.lang.String typeArg){} + protected WheelEvent(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/WheelEventInit.java b/core-lib/es6/src/main/java/def/dom/WheelEventInit.java new file mode 100644 index 00000000..c72df62b --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WheelEventInit.java @@ -0,0 +1,14 @@ +package def.dom; + +@jsweet.lang.Interface +public abstract class WheelEventInit extends MouseEventInit { + @jsweet.lang.Optional + public double deltaX; + @jsweet.lang.Optional + public double deltaY; + @jsweet.lang.Optional + public double deltaZ; + @jsweet.lang.Optional + public double deltaMode; +} + diff --git a/core-lib/es6/src/main/java/def/dom/Window.java b/core-lib/es6/src/main/java/def/dom/Window.java new file mode 100644 index 00000000..64157c2a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Window.java @@ -0,0 +1,526 @@ +package def.dom; + +import def.js.String; +import def.js.StringTypes; +import def.js.StringTypes.MSGestureChange; +import def.js.StringTypes.MSGestureDoubleTap; +import def.js.StringTypes.MSGestureEnd; +import def.js.StringTypes.MSGestureHold; +import def.js.StringTypes.MSGestureStart; +import def.js.StringTypes.MSGestureTap; +import def.js.StringTypes.MSInertiaStart; +import def.js.StringTypes.MSPointerCancel; +import def.js.StringTypes.MSPointerDown; +import def.js.StringTypes.MSPointerEnter; +import def.js.StringTypes.MSPointerLeave; +import def.js.StringTypes.MSPointerMove; +import def.js.StringTypes.MSPointerOut; +import def.js.StringTypes.MSPointerOver; +import def.js.StringTypes.MSPointerUp; +import def.js.StringTypes.abort; +import def.js.StringTypes.afterprint; +import def.js.StringTypes.beforeprint; +import def.js.StringTypes.beforeunload; +import def.js.StringTypes.blur; +import def.js.StringTypes.canplay; +import def.js.StringTypes.canplaythrough; +import def.js.StringTypes.change; +import def.js.StringTypes.click; +import def.js.StringTypes.compassneedscalibration; +import def.js.StringTypes.contextmenu; +import def.js.StringTypes.dblclick; +import def.js.StringTypes.devicemotion; +import def.js.StringTypes.deviceorientation; +import def.js.StringTypes.drag; +import def.js.StringTypes.dragend; +import def.js.StringTypes.dragenter; +import def.js.StringTypes.dragleave; +import def.js.StringTypes.dragover; +import def.js.StringTypes.dragstart; +import def.js.StringTypes.drop; +import def.js.StringTypes.durationchange; +import def.js.StringTypes.emptied; +import def.js.StringTypes.ended; +import def.js.StringTypes.focus; +import def.js.StringTypes.hashchange; +import def.js.StringTypes.input; +import def.js.StringTypes.keydown; +import def.js.StringTypes.keypress; +import def.js.StringTypes.keyup; +import def.js.StringTypes.load; +import def.js.StringTypes.loadeddata; +import def.js.StringTypes.loadedmetadata; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.message; +import def.js.StringTypes.mousedown; +import def.js.StringTypes.mouseenter; +import def.js.StringTypes.mouseleave; +import def.js.StringTypes.mousemove; +import def.js.StringTypes.mouseout; +import def.js.StringTypes.mouseover; +import def.js.StringTypes.mouseup; +import def.js.StringTypes.mousewheel; +import def.js.StringTypes.offline; +import def.js.StringTypes.online; +import def.js.StringTypes.orientationchange; +import def.js.StringTypes.pagehide; +import def.js.StringTypes.pageshow; +import def.js.StringTypes.pause; +import def.js.StringTypes.play; +import def.js.StringTypes.playing; +import def.js.StringTypes.pointercancel; +import def.js.StringTypes.pointerdown; +import def.js.StringTypes.pointerenter; +import def.js.StringTypes.pointerleave; +import def.js.StringTypes.pointermove; +import def.js.StringTypes.pointerout; +import def.js.StringTypes.pointerover; +import def.js.StringTypes.pointerup; +import def.js.StringTypes.popstate; +import def.js.StringTypes.progress; +import def.js.StringTypes.ratechange; +import def.js.StringTypes.readystatechange; +import def.js.StringTypes.reset; +import def.js.StringTypes.resize; +import def.js.StringTypes.scroll; +import def.js.StringTypes.seeked; +import def.js.StringTypes.seeking; +import def.js.StringTypes.select; +import def.js.StringTypes.stalled; +import def.js.StringTypes.storage; +import def.js.StringTypes.submit; +import def.js.StringTypes.suspend; +import def.js.StringTypes.timeupdate; +import def.js.StringTypes.unload; +import def.js.StringTypes.volumechange; +import def.js.StringTypes.waiting; +import def.js.StringTypes.wheel; + +@jsweet.lang.SyntacticIterable +@jsweet.lang.Extends({WindowTimers.class,WindowSessionStorage.class,WindowLocalStorage.class,WindowConsole.class,GlobalEventHandlers.class,IDBEnvironment.class,WindowBase64.class}) +public class Window { + public double animationStartTime; + public ApplicationCache applicationCache; + public Navigator clientInformation; + public java.lang.Boolean closed; + public Crypto crypto; + public java.lang.String defaultStatus; + public double devicePixelRatio; + public java.lang.String doNotTrack; + public Document document; + public Event event; + public External external; + public Element frameElement; + public Window frames; + public History history; + public double innerHeight; + public double innerWidth; + public double length; + public Location location; + public BarProp locationbar; + public BarProp menubar; + public double msAnimationStartTime; + public MSTemplatePrinter msTemplatePrinter; + public java.lang.String name; + public Navigator navigator; + public jsweet.util.union.Union offscreenBuffering; + public java.util.function.Function onabort; + public java.util.function.Function onafterprint; + public java.util.function.Function onbeforeprint; + public java.util.function.Function onbeforeunload; + public java.util.function.Function onblur; + public java.util.function.Function oncanplay; + public java.util.function.Function oncanplaythrough; + public java.util.function.Function onchange; + public java.util.function.Function onclick; + public java.util.function.Function oncompassneedscalibration; + public java.util.function.Function oncontextmenu; + public java.util.function.Function ondblclick; + public java.util.function.Function ondevicemotion; + public java.util.function.Function ondeviceorientation; + public java.util.function.Function ondrag; + public java.util.function.Function ondragend; + public java.util.function.Function ondragenter; + public java.util.function.Function ondragleave; + public java.util.function.Function ondragover; + public java.util.function.Function ondragstart; + public java.util.function.Function ondrop; + public java.util.function.Function ondurationchange; + public java.util.function.Function onemptied; + public java.util.function.Function onended; + public ErrorEventHandler onerror; + public java.util.function.Function onfocus; + public java.util.function.Function onhashchange; + public java.util.function.Function oninput; + public java.util.function.Function onkeydown; + public java.util.function.Function onkeypress; + public java.util.function.Function onkeyup; + public java.util.function.Function onload; + public java.util.function.Function onloadeddata; + public java.util.function.Function onloadedmetadata; + public java.util.function.Function onloadstart; + public java.util.function.Function onmessage; + public java.util.function.Function onmousedown; + public java.util.function.Function onmouseenter; + public java.util.function.Function onmouseleave; + public java.util.function.Function onmousemove; + public java.util.function.Function onmouseout; + public java.util.function.Function onmouseover; + public java.util.function.Function onmouseup; + public java.util.function.Function onmousewheel; + public java.util.function.Function onmsgesturechange; + public java.util.function.Function onmsgesturedoubletap; + public java.util.function.Function onmsgestureend; + public java.util.function.Function onmsgesturehold; + public java.util.function.Function onmsgesturestart; + public java.util.function.Function onmsgesturetap; + public java.util.function.Function onmsinertiastart; + public java.util.function.Function onmspointercancel; + public java.util.function.Function onmspointerdown; + public java.util.function.Function onmspointerenter; + public java.util.function.Function onmspointerleave; + public java.util.function.Function onmspointermove; + public java.util.function.Function onmspointerout; + public java.util.function.Function onmspointerover; + public java.util.function.Function onmspointerup; + public java.util.function.Function onoffline; + public java.util.function.Function ononline; + public java.util.function.Function onorientationchange; + public java.util.function.Function onpagehide; + public java.util.function.Function onpageshow; + public java.util.function.Function onpause; + public java.util.function.Function onplay; + public java.util.function.Function onplaying; + public java.util.function.Function onpopstate; + public java.util.function.Function onprogress; + public java.util.function.Function onratechange; + public java.util.function.Function onreadystatechange; + public java.util.function.Function onreset; + public java.util.function.Function onresize; + public java.util.function.Function onscroll; + public java.util.function.Function onseeked; + public java.util.function.Function onseeking; + public java.util.function.Function onselect; + public java.util.function.Function onstalled; + public java.util.function.Function onstorage; + public java.util.function.Function onsubmit; + public java.util.function.Function onsuspend; + public java.util.function.Function ontimeupdate; + public java.lang.Object ontouchcancel; + public java.lang.Object ontouchend; + public java.lang.Object ontouchmove; + public java.lang.Object ontouchstart; + public java.util.function.Function onunload; + public java.util.function.Function onvolumechange; + public java.util.function.Function onwaiting; + public Window opener; + public java.lang.String orientation; + public double outerHeight; + public double outerWidth; + public double pageXOffset; + public double pageYOffset; + public Window parent; + public Performance performance; + public BarProp personalbar; + public Screen screen; + public double screenLeft; + public double screenTop; + public double screenX; + public double screenY; + public double scrollX; + public double scrollY; + public BarProp scrollbars; + public Window self; + public java.lang.String status; + public BarProp statusbar; + public StyleMedia styleMedia; + public BarProp toolbar; + public Window top; + public Window window; + native public void alert(java.lang.Object message); + native public void blur(); + native public void cancelAnimationFrame(double handle); + native public void captureEvents(); + native public void close(); + native public java.lang.Boolean confirm(java.lang.String message); + native public void focus(); + native public CSSStyleDeclaration getComputedStyle(Element elt, java.lang.String pseudoElt); + native public CSSRuleList getMatchedCSSRules(Element elt, java.lang.String pseudoElt); + native public Selection getSelection(); + native public MediaQueryList matchMedia(java.lang.String mediaQuery); + native public void moveBy(double x, double y); + native public void moveTo(double x, double y); + native public void msCancelRequestAnimationFrame(double handle); + native public MediaQueryList msMatchMedia(java.lang.String mediaQuery); + native public double msRequestAnimationFrame(FrameRequestCallback callback); + native public void msWriteProfilerMark(java.lang.String profilerMarkName); + native public java.lang.Object open(java.lang.String url, java.lang.String target, java.lang.String features, java.lang.Boolean replace); + native public void postMessage(java.lang.Object message, java.lang.String targetOrigin, java.lang.Object ports); + native public void print(); + native public java.lang.String prompt(java.lang.String message, java.lang.String _default); + native public void releaseEvents(); + native public double requestAnimationFrame(FrameRequestCallback callback); + native public void resizeBy(double x, double y); + native public void resizeTo(double x, double y); + native public void scroll(double x, double y); + native public void scrollBy(double x, double y); + native public void scrollTo(double x, double y); + native public WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint pt); + native public WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint pt); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.afterprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.compassneedscalibration type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.devicemotion type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.deviceorientation type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.popstate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public Window $get(double index); + public static Window prototype; + public Window(){} + native public void clearInterval(double handle); + native public void clearTimeout(double handle); + native public double setInterval(java.lang.Object handler, java.lang.Object timeout, java.lang.Object... args); + native public double setTimeout(java.lang.Object handler, java.lang.Object timeout, java.lang.Object... args); + native public void clearImmediate(double handle); + native public void msClearImmediate(double handle); + native public double msSetImmediate(java.lang.Object expression, java.lang.Object... args); + native public double setImmediate(java.lang.Object expression, java.lang.Object... args); + public Storage sessionStorage; + public Storage localStorage; + public Console console; + public java.util.function.Function onpointercancel; + public java.util.function.Function onpointerdown; + public java.util.function.Function onpointerenter; + public java.util.function.Function onpointerleave; + public java.util.function.Function onpointermove; + public java.util.function.Function onpointerout; + public java.util.function.Function onpointerover; + public java.util.function.Function onpointerup; + public java.util.function.Function onwheel; + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + public IDBFactory indexedDB; + public IDBFactory msIndexedDB; + native public java.lang.String atob(java.lang.String encodedString); + native public java.lang.String btoa(java.lang.String rawString); + native public void alert(); + native public java.lang.Boolean confirm(); + native public CSSStyleDeclaration getComputedStyle(Element elt); + native public CSSRuleList getMatchedCSSRules(Element elt); + native public void moveBy(double x); + native public void moveBy(); + native public void moveTo(double x); + native public void moveTo(); + native public java.lang.Object open(java.lang.String url, java.lang.String target, java.lang.String features); + native public java.lang.Object open(java.lang.String url, java.lang.String target); + native public java.lang.Object open(java.lang.String url); + native public java.lang.Object open(); + native public void postMessage(java.lang.Object message, java.lang.String targetOrigin); + native public java.lang.String prompt(java.lang.String message); + native public java.lang.String prompt(); + native public void resizeBy(double x); + native public void resizeBy(); + native public void resizeTo(double x); + native public void resizeTo(); + native public void scroll(double x); + native public void scroll(); + native public void scrollBy(double x); + native public void scrollBy(); + native public void scrollTo(double x); + native public void scrollTo(); + native public void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.afterprint type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.compassneedscalibration type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.devicemotion type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.deviceorientation type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.popstate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public double setInterval(java.lang.Object handler); + native public double setTimeout(java.lang.Object handler); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + native public void onerror(def.dom.Event event, def.js.String source, double fileno, double columnNumber); + native public void onerror(def.js.String event, def.js.String source, double fileno, double columnNumber); + native public void onerror(def.dom.Event event, def.js.String source, double fileno); + native public void onerror(def.dom.Event event, def.js.String source); + native public void onerror(def.dom.Event event); + native public void onerror(def.js.String event, def.js.String source, double fileno); + native public void onerror(def.js.String event, def.js.String source); + native public void onerror(def.js.String event); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/WindowBase64.java b/core-lib/es6/src/main/java/def/dom/WindowBase64.java new file mode 100644 index 00000000..b532987f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WindowBase64.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class WindowBase64 extends def.js.Object { + native public java.lang.String atob(java.lang.String encodedString); + native public java.lang.String btoa(java.lang.String rawString); +} + diff --git a/core-lib/es6/src/main/java/def/dom/WindowConsole.java b/core-lib/es6/src/main/java/def/dom/WindowConsole.java new file mode 100644 index 00000000..453fa20f --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WindowConsole.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class WindowConsole extends def.js.Object { + public Console console; +} + diff --git a/core-lib/es6/src/main/java/def/dom/WindowLocalStorage.java b/core-lib/es6/src/main/java/def/dom/WindowLocalStorage.java new file mode 100644 index 00000000..f458c920 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WindowLocalStorage.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class WindowLocalStorage extends def.js.Object { + public Storage localStorage; +} + diff --git a/core-lib/es6/src/main/java/def/dom/WindowSessionStorage.java b/core-lib/es6/src/main/java/def/dom/WindowSessionStorage.java new file mode 100644 index 00000000..80d4f616 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WindowSessionStorage.java @@ -0,0 +1,9 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class WindowSessionStorage extends def.js.Object { + public Storage sessionStorage; +} + diff --git a/core-lib/es6/src/main/java/def/dom/WindowTimers.java b/core-lib/es6/src/main/java/def/dom/WindowTimers.java new file mode 100644 index 00000000..ece7f205 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WindowTimers.java @@ -0,0 +1,16 @@ +package def.dom; +@jsweet.lang.Interface +@jsweet.lang.Extends({WindowTimersExtension.class}) +public abstract class WindowTimers extends java.lang.Object { + native public void clearInterval(double handle); + native public void clearTimeout(double handle); + native public double setInterval(java.lang.Object handler, java.lang.Object timeout, java.lang.Object... args); + native public double setTimeout(java.lang.Object handler, java.lang.Object timeout, java.lang.Object... args); + native public void clearImmediate(double handle); + native public void msClearImmediate(double handle); + native public double msSetImmediate(java.lang.Object expression, java.lang.Object... args); + native public double setImmediate(java.lang.Object expression, java.lang.Object... args); + native public double setInterval(java.lang.Object handler); + native public double setTimeout(java.lang.Object handler); +} + diff --git a/core-lib/es6/src/main/java/def/dom/WindowTimersExtension.java b/core-lib/es6/src/main/java/def/dom/WindowTimersExtension.java new file mode 100644 index 00000000..e9079f9a --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/WindowTimersExtension.java @@ -0,0 +1,12 @@ +package def.dom; + +import def.js.Object; + +@jsweet.lang.Interface +public abstract class WindowTimersExtension extends def.js.Object { + native public void clearImmediate(double handle); + native public void msClearImmediate(double handle); + native public double msSetImmediate(java.lang.Object expression, java.lang.Object... args); + native public double setImmediate(java.lang.Object expression, java.lang.Object... args); +} + diff --git a/core-lib/es6/src/main/java/def/dom/Worker.java b/core-lib/es6/src/main/java/def/dom/Worker.java new file mode 100644 index 00000000..ff78a64e --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/Worker.java @@ -0,0 +1,26 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.error; +import def.js.StringTypes.message; + +@jsweet.lang.Extends({AbstractWorker.class}) +public class Worker extends EventTarget { + public java.util.function.Function onmessage; + native public void postMessage(java.lang.Object message, java.lang.Object ports); + native public void terminate(); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + public static Worker prototype; + public Worker(java.lang.String stringUrl){} + public java.util.function.Function onerror; + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void postMessage(java.lang.Object message); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); + protected Worker(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/XMLDocument.java b/core-lib/es6/src/main/java/def/dom/XMLDocument.java new file mode 100644 index 00000000..cad708f5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XMLDocument.java @@ -0,0 +1,7 @@ +package def.dom; + +public class XMLDocument extends Document { + public static XMLDocument prototype; + public XMLDocument(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/XMLHttpRequest.java b/core-lib/es6/src/main/java/def/dom/XMLHttpRequest.java new file mode 100644 index 00000000..5bddd7b2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XMLHttpRequest.java @@ -0,0 +1,78 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; +import def.js.StringTypes.load; +import def.js.StringTypes.loadend; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.progress; +import def.js.StringTypes.readystatechange; +import def.js.StringTypes.timeout; + +@jsweet.lang.Extends({XMLHttpRequestEventTarget.class}) +public class XMLHttpRequest extends EventTarget { + public java.lang.String msCaching; + public java.util.function.Function onreadystatechange; + public double readyState; + public java.lang.Object response; + public java.lang.Object responseBody; + public java.lang.String responseText; + public java.lang.String responseType; + public java.lang.Object responseXML; + public double status; + public java.lang.String statusText; + public double timeout; + public XMLHttpRequestUpload upload; + public java.lang.Boolean withCredentials; + native public void abort(); + native public java.lang.String getAllResponseHeaders(); + native public java.lang.String getResponseHeader(java.lang.String header); + native public java.lang.Boolean msCachingEnabled(); + native public void open(java.lang.String method, java.lang.String url, java.lang.Boolean async, java.lang.String user, java.lang.String password); + native public void overrideMimeType(java.lang.String mime); + native public void send(Document data); + native public void send(java.lang.String data); + native public void send(java.lang.Object data); + native public void setRequestHeader(java.lang.String header, java.lang.String value); + public double DONE; + public double HEADERS_RECEIVED; + public double LOADING; + public double OPENED; + public double UNSENT; + native public void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + public static XMLHttpRequest prototype; + public XMLHttpRequest(){} + native public static XMLHttpRequest create(); + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public java.util.function.Function onloadend; + public java.util.function.Function onloadstart; + public java.util.function.Function onprogress; + public java.util.function.Function ontimeout; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void open(java.lang.String method, java.lang.String url, java.lang.Boolean async, java.lang.String user); + native public void open(java.lang.String method, java.lang.String url, java.lang.Boolean async); + native public void open(java.lang.String method, java.lang.String url); + native public void send(); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeout type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/XMLHttpRequestEventTarget.java b/core-lib/es6/src/main/java/def/dom/XMLHttpRequestEventTarget.java new file mode 100644 index 00000000..88997960 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XMLHttpRequestEventTarget.java @@ -0,0 +1,41 @@ +package def.dom; + +import def.js.Object; +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; +import def.js.StringTypes.load; +import def.js.StringTypes.loadend; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.progress; +import def.js.StringTypes.timeout; + +@jsweet.lang.Interface +public abstract class XMLHttpRequestEventTarget extends def.js.Object { + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public java.util.function.Function onloadend; + public java.util.function.Function onloadstart; + public java.util.function.Function onprogress; + public java.util.function.Function ontimeout; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeout type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/XMLHttpRequestUpload.java b/core-lib/es6/src/main/java/def/dom/XMLHttpRequestUpload.java new file mode 100644 index 00000000..4790c632 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XMLHttpRequestUpload.java @@ -0,0 +1,42 @@ +package def.dom; + +import def.js.StringTypes; +import def.js.StringTypes.abort; +import def.js.StringTypes.error; +import def.js.StringTypes.load; +import def.js.StringTypes.loadend; +import def.js.StringTypes.loadstart; +import def.js.StringTypes.progress; +import def.js.StringTypes.timeout; + +@jsweet.lang.Extends({XMLHttpRequestEventTarget.class}) +public class XMLHttpRequestUpload extends EventTarget { + public static XMLHttpRequestUpload prototype; + public XMLHttpRequestUpload(){} + public java.util.function.Function onabort; + public java.util.function.Function onerror; + public java.util.function.Function onload; + public java.util.function.Function onloadend; + public java.util.function.Function onloadstart; + public java.util.function.Function onprogress; + public java.util.function.Function ontimeout; + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(def.js.StringTypes.timeout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListener listener); + native public void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.error type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadend type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public void addEventListener(def.js.StringTypes.timeout type, java.util.function.Function listener); + native public void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public void addEventListener(java.lang.String type, EventListenerObject listener); +} + diff --git a/core-lib/es6/src/main/java/def/dom/XMLSerializer.java b/core-lib/es6/src/main/java/def/dom/XMLSerializer.java new file mode 100644 index 00000000..38a50943 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XMLSerializer.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class XMLSerializer extends def.js.Object { + native public java.lang.String serializeToString(Node target); + public static XMLSerializer prototype; + public XMLSerializer(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/XPathEvaluator.java b/core-lib/es6/src/main/java/def/dom/XPathEvaluator.java new file mode 100644 index 00000000..959130c1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XPathEvaluator.java @@ -0,0 +1,13 @@ +package def.dom; + +import def.js.Object; + +public class XPathEvaluator extends def.js.Object { + native public XPathExpression createExpression(java.lang.String expression, XPathNSResolver resolver); + native public XPathNSResolver createNSResolver(Node nodeResolver); + native public XPathResult evaluate(java.lang.String expression, Node contextNode, XPathNSResolver resolver, double type, XPathResult result); + public static XPathEvaluator prototype; + public XPathEvaluator(){} + native public XPathNSResolver createNSResolver(); +} + diff --git a/core-lib/es6/src/main/java/def/dom/XPathExpression.java b/core-lib/es6/src/main/java/def/dom/XPathExpression.java new file mode 100644 index 00000000..b8a7050c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XPathExpression.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class XPathExpression extends def.js.Object { + native public XPathExpression evaluate(Node contextNode, double type, XPathResult result); + public static XPathExpression prototype; + public XPathExpression(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/XPathNSResolver.java b/core-lib/es6/src/main/java/def/dom/XPathNSResolver.java new file mode 100644 index 00000000..bdfaca2d --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XPathNSResolver.java @@ -0,0 +1,10 @@ +package def.dom; + +import def.js.Object; + +public class XPathNSResolver extends def.js.Object { + native public java.lang.String lookupNamespaceURI(java.lang.String prefix); + public static XPathNSResolver prototype; + public XPathNSResolver(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/XPathResult.java b/core-lib/es6/src/main/java/def/dom/XPathResult.java new file mode 100644 index 00000000..3ff8530c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XPathResult.java @@ -0,0 +1,28 @@ +package def.dom; + +import def.js.Object; + +public class XPathResult extends def.js.Object { + public java.lang.Boolean booleanValue; + public java.lang.Boolean invalidIteratorState; + public double numberValue; + public double resultType; + public Node singleNodeValue; + public double snapshotLength; + public java.lang.String stringValue; + native public Node iterateNext(); + native public Node snapshotItem(double index); + public double ANY_TYPE; + public double ANY_UNORDERED_NODE_TYPE; + public double BOOLEAN_TYPE; + public double FIRST_ORDERED_NODE_TYPE; + public double NUMBER_TYPE; + public double ORDERED_NODE_ITERATOR_TYPE; + public double ORDERED_NODE_SNAPSHOT_TYPE; + public double STRING_TYPE; + public double UNORDERED_NODE_ITERATOR_TYPE; + public double UNORDERED_NODE_SNAPSHOT_TYPE; + public static XPathResult prototype; + public XPathResult(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/XSLTProcessor.java b/core-lib/es6/src/main/java/def/dom/XSLTProcessor.java new file mode 100644 index 00000000..9f88cc58 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/XSLTProcessor.java @@ -0,0 +1,17 @@ +package def.dom; + +import def.js.Object; + +public class XSLTProcessor extends def.js.Object { + native public void clearParameters(); + native public java.lang.Object getParameter(java.lang.String namespaceURI, java.lang.String localName); + native public void importStylesheet(Node style); + native public void removeParameter(java.lang.String namespaceURI, java.lang.String localName); + native public void reset(); + native public void setParameter(java.lang.String namespaceURI, java.lang.String localName, java.lang.Object value); + native public Document transformToDocument(Node source); + native public DocumentFragment transformToFragment(Node source, Document document); + public static XSLTProcessor prototype; + public XSLTProcessor(){} +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/Collator.java b/core-lib/es6/src/main/java/def/dom/intl/Collator.java new file mode 100644 index 00000000..37020d9c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/Collator.java @@ -0,0 +1,20 @@ +package def.dom.intl; +public class Collator extends def.js.Object { + native public double compare(String x, String y); + native public ResolvedCollatorOptions resolvedOptions(); + public Collator(String[] locales, CollatorOptions options){} + public Collator(String locale, CollatorOptions options){} + native public static Collator applyStatic(String[] locales, CollatorOptions options); + native public static Collator applyStatic(String locale, CollatorOptions options); + native public static String[] supportedLocalesOf(String[] locales, CollatorOptions options); + native public static String[] supportedLocalesOf(String locale, CollatorOptions options); + public Collator(String[] locales){} + public Collator(){} + public Collator(String locale){} + native public static Collator applyStatic(String[] locales); + native public static Collator applyStatic(); + native public static Collator applyStatic(String locale); + native public static String[] supportedLocalesOf(String[] locales); + native public static String[] supportedLocalesOf(String locale); +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/CollatorOptions.java b/core-lib/es6/src/main/java/def/dom/intl/CollatorOptions.java new file mode 100644 index 00000000..519702e8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/CollatorOptions.java @@ -0,0 +1,17 @@ +package def.dom.intl; +@jsweet.lang.Interface +public abstract class CollatorOptions extends def.js.Object { + @jsweet.lang.Optional + public String usage; + @jsweet.lang.Optional + public String localeMatcher; + @jsweet.lang.Optional + public Boolean numeric; + @jsweet.lang.Optional + public String caseFirst; + @jsweet.lang.Optional + public String sensitivity; + @jsweet.lang.Optional + public Boolean ignorePunctuation; +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/DateTimeFormat.java b/core-lib/es6/src/main/java/def/dom/intl/DateTimeFormat.java new file mode 100644 index 00000000..a74b9139 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/DateTimeFormat.java @@ -0,0 +1,23 @@ +package def.dom.intl; +import def.js.Date; +public class DateTimeFormat extends def.js.Object { + native public String format(Date date); + native public ResolvedDateTimeFormatOptions resolvedOptions(); + public DateTimeFormat(String[] locales, DateTimeFormatOptions options){} + public DateTimeFormat(String locale, DateTimeFormatOptions options){} + native public static DateTimeFormat applyStatic(String[] locales, DateTimeFormatOptions options); + native public static DateTimeFormat applyStatic(String locale, DateTimeFormatOptions options); + native public static String[] supportedLocalesOf(String[] locales, DateTimeFormatOptions options); + native public static String[] supportedLocalesOf(String locale, DateTimeFormatOptions options); + native public String format(); + public DateTimeFormat(String[] locales){} + public DateTimeFormat(){} + public DateTimeFormat(String locale){} + native public static DateTimeFormat applyStatic(String[] locales); + native public static DateTimeFormat applyStatic(); + native public static DateTimeFormat applyStatic(String locale); + native public static String[] supportedLocalesOf(String[] locales); + native public static String[] supportedLocalesOf(String locale); + native public String format(double date); +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/DateTimeFormatOptions.java b/core-lib/es6/src/main/java/def/dom/intl/DateTimeFormatOptions.java new file mode 100644 index 00000000..275d2ded --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/DateTimeFormatOptions.java @@ -0,0 +1,29 @@ +package def.dom.intl; +@jsweet.lang.Interface +public abstract class DateTimeFormatOptions extends def.js.Object { + @jsweet.lang.Optional + public String localeMatcher; + @jsweet.lang.Optional + public String weekday; + @jsweet.lang.Optional + public String era; + @jsweet.lang.Optional + public String year; + @jsweet.lang.Optional + public String month; + @jsweet.lang.Optional + public String day; + @jsweet.lang.Optional + public String hour; + @jsweet.lang.Optional + public String minute; + @jsweet.lang.Optional + public String second; + @jsweet.lang.Optional + public String timeZoneName; + @jsweet.lang.Optional + public String formatMatcher; + @jsweet.lang.Optional + public Boolean hour12; +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/NumberFormat.java b/core-lib/es6/src/main/java/def/dom/intl/NumberFormat.java new file mode 100644 index 00000000..b8d1a975 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/NumberFormat.java @@ -0,0 +1,20 @@ +package def.dom.intl; +public class NumberFormat extends def.js.Object { + native public String format(double value); + native public ResolvedNumberFormatOptions resolvedOptions(); + public NumberFormat(String[] locales, NumberFormatOptions options){} + public NumberFormat(String locale, NumberFormatOptions options){} + native public static NumberFormat applyStatic(String[] locales, NumberFormatOptions options); + native public static NumberFormat applyStatic(String locale, NumberFormatOptions options); + native public static String[] supportedLocalesOf(String[] locales, NumberFormatOptions options); + native public static String[] supportedLocalesOf(String locale, NumberFormatOptions options); + public NumberFormat(String[] locales){} + public NumberFormat(){} + public NumberFormat(String locale){} + native public static NumberFormat applyStatic(String[] locales); + native public static NumberFormat applyStatic(); + native public static NumberFormat applyStatic(String locale); + native public static String[] supportedLocalesOf(String[] locales); + native public static String[] supportedLocalesOf(String locale); +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/NumberFormatOptions.java b/core-lib/es6/src/main/java/def/dom/intl/NumberFormatOptions.java new file mode 100644 index 00000000..7bf80887 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/NumberFormatOptions.java @@ -0,0 +1,25 @@ +package def.dom.intl; +@jsweet.lang.Interface +public abstract class NumberFormatOptions extends def.js.Object { + @jsweet.lang.Optional + public String localeMatcher; + @jsweet.lang.Optional + public String style; + @jsweet.lang.Optional + public String currency; + @jsweet.lang.Optional + public String currencyDisplay; + @jsweet.lang.Optional + public Boolean useGrouping; + @jsweet.lang.Optional + public double minimumintegerDigits; + @jsweet.lang.Optional + public double minimumFractionDigits; + @jsweet.lang.Optional + public double maximumFractionDigits; + @jsweet.lang.Optional + public double minimumSignificantDigits; + @jsweet.lang.Optional + public double maximumSignificantDigits; +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/ResolvedCollatorOptions.java b/core-lib/es6/src/main/java/def/dom/intl/ResolvedCollatorOptions.java new file mode 100644 index 00000000..962b3d52 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/ResolvedCollatorOptions.java @@ -0,0 +1,12 @@ +package def.dom.intl; +@jsweet.lang.Interface +public abstract class ResolvedCollatorOptions extends def.js.Object { + public String locale; + public String usage; + public String sensitivity; + public Boolean ignorePunctuation; + public String collation; + public String caseFirst; + public Boolean numeric; +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/ResolvedDateTimeFormatOptions.java b/core-lib/es6/src/main/java/def/dom/intl/ResolvedDateTimeFormatOptions.java new file mode 100644 index 00000000..9f25a24c --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/ResolvedDateTimeFormatOptions.java @@ -0,0 +1,29 @@ +package def.dom.intl; +@jsweet.lang.Interface +public abstract class ResolvedDateTimeFormatOptions extends def.js.Object { + public String locale; + public String calendar; + public String numberingSystem; + public String timeZone; + @jsweet.lang.Optional + public Boolean hour12; + @jsweet.lang.Optional + public String weekday; + @jsweet.lang.Optional + public String era; + @jsweet.lang.Optional + public String year; + @jsweet.lang.Optional + public String month; + @jsweet.lang.Optional + public String day; + @jsweet.lang.Optional + public String hour; + @jsweet.lang.Optional + public String minute; + @jsweet.lang.Optional + public String second; + @jsweet.lang.Optional + public String timeZoneName; +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/ResolvedNumberFormatOptions.java b/core-lib/es6/src/main/java/def/dom/intl/ResolvedNumberFormatOptions.java new file mode 100644 index 00000000..2d845823 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/ResolvedNumberFormatOptions.java @@ -0,0 +1,20 @@ +package def.dom.intl; +@jsweet.lang.Interface +public abstract class ResolvedNumberFormatOptions extends def.js.Object { + public String locale; + public String numberingSystem; + public String style; + @jsweet.lang.Optional + public String currency; + @jsweet.lang.Optional + public String currencyDisplay; + public double minimumintegerDigits; + public double minimumFractionDigits; + public double maximumFractionDigits; + @jsweet.lang.Optional + public double minimumSignificantDigits; + @jsweet.lang.Optional + public double maximumSignificantDigits; + public Boolean useGrouping; +} + diff --git a/core-lib/es6/src/main/java/def/dom/intl/package-info.java b/core-lib/es6/src/main/java/def/dom/intl/package-info.java new file mode 100644 index 00000000..b097e6d5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/dom/intl/package-info.java @@ -0,0 +1,3 @@ +/** (source: Definitely Typed) */ +@jsweet.lang.Name("Intl") +package def.dom.intl; diff --git a/core-lib/es6/src/main/java/def/js/Array.java b/core-lib/es6/src/main/java/def/js/Array.java new file mode 100644 index 00000000..48706fc6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Array.java @@ -0,0 +1,352 @@ +package def.js; +import jsweet.util.function.Function4; +@jsweet.lang.SyntacticIterable +public class Array extends Iterable { + /** + * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. + */ + public double length; + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + native public java.lang.String toLocaleString(); + /** + * Appends new elements to an array, and returns the new length of the array. + * @param items New elements of the Array. + */ + native public double push(@SuppressWarnings("unchecked") T... items); + /** + * Removes the last element from an array and returns it. + */ + native public T pop(); + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + native public T[] concat(@SuppressWarnings("unchecked") ItemsUs... items); + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + native public T[] concat(@SuppressWarnings("unchecked") ItemsTs... items); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Reverses the elements in an Array. + */ + native public T[] reverse(); + /** + * Removes the first element from an array and returns it. + */ + native public T shift(); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public T[] slice(double start, double end); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. + */ + native public T[] sort(java.util.function.BiFunction compareFn); + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + */ + native public T[] splice(double start); + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the array in place of the deleted elements. + */ + native public T[] splice(double start, double deleteCount, @SuppressWarnings("unchecked") T... items); + /** + * Inserts new elements at the start of an array. + * @param items Elements to insert at the start of the Array. + */ + native public double unshift(@SuppressWarnings("unchecked") T... items); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + native public double indexOf(T searchElement, double fromIndex); + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + native public double lastIndexOf(T searchElement, double fromIndex); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public U[] map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public T[] filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + @jsweet.lang.Name("reduce") + native public T reduceCallbackfnFunction4(Function4 callbackfn, InitialValueT initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + @jsweet.lang.Name("reduce") + native public U reduceCallbackfnUUFunction4(Function4 callbackfn, InitialValueU initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + @jsweet.lang.Name("reduceRight") + native public T reduceRightCallbackfnFunction4(Function4 callbackfn, InitialValueT initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + @jsweet.lang.Name("reduceRight") + native public U reduceRightCallbackfnUUFunction4(Function4 callbackfn, InitialValueU initialValue); + native public T $get(double n); + public Array(double arrayLength){} + public Array(@SuppressWarnings("unchecked") T... items){} + native public static java.lang.Object[] applyStatic(double arrayLength); + native public static T[] applyStatic(@SuppressWarnings("unchecked") T... items); + native public static java.lang.Boolean isArray(java.lang.Object arg); + public static Array prototype; + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public T find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public T[] fill(T value, double start, double end); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public T[] copyWithin(double target, double start, double end); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public T[] slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public T[] slice(); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. + */ + native public T[] sort(); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + native public double indexOf(T searchElement); + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + native public double lastIndexOf(T searchElement); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public U[] map(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + native public T[] filter(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + native public T reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + native public T reduceRight(Function4 callbackfn); + public Array(){} + native public static java.lang.Object[] applyStatic(); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public T find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public T[] fill(T value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public T[] fill(T value); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public T[] copyWithin(double target, double start); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + /** This class was automatically generated for disambiguating erased method signatures. */ + @jsweet.lang.Erased + public static class ItemsTs extends def.js.Object { + public ItemsTs(@SuppressWarnings("unchecked") T... items){} + } + /** This class was automatically generated for disambiguating erased method signatures. */ + @jsweet.lang.Erased + public static class ItemsUs extends def.js.Object { + public ItemsUs(@SuppressWarnings("unchecked") U... items){} + } + /** This class was automatically generated for disambiguating erased method signatures. */ + @jsweet.lang.Erased + public static class InitialValueU extends def.js.Object { + public InitialValueU(U initialValue){} + } + /** This class was automatically generated for disambiguating erased method signatures. */ + @jsweet.lang.Erased + public static class InitialValueT extends def.js.Object { + public InitialValueT(T initialValue){} + } +} + diff --git a/core-lib/es6/src/main/java/def/js/ArrayBuffer.java b/core-lib/es6/src/main/java/def/js/ArrayBuffer.java new file mode 100644 index 00000000..ff4f145b --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ArrayBuffer.java @@ -0,0 +1,27 @@ +package def.js; +/** + * Represents a raw buffer of binary data, which is used to store data for the + * different typed arrays. ArrayBuffers cannot be read from or written to directly, + * but can be passed to a typed array or DataView Object to interpret the raw + * buffer as needed. + */ +public class ArrayBuffer extends def.js.Object { + /** + * Read-only. The length of the ArrayBuffer (in bytes). + */ + public double byteLength; + /** + * Returns a section of an ArrayBuffer. + */ + native public ArrayBuffer slice(double begin, double end); + native public java.lang.String $get(Symbol toStringTag); + public static ArrayBuffer prototype; + public ArrayBuffer(double byteLength){} + native public static java.lang.Boolean isView(java.lang.Object arg); + /** + * Returns a section of an ArrayBuffer. + */ + native public ArrayBuffer slice(double begin); + protected ArrayBuffer(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/ArrayBufferView.java b/core-lib/es6/src/main/java/def/js/ArrayBufferView.java new file mode 100644 index 00000000..4ce54b71 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ArrayBufferView.java @@ -0,0 +1,17 @@ +package def.js; +@jsweet.lang.Interface +public abstract class ArrayBufferView extends def.js.Object { + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; +} + diff --git a/core-lib/es6/src/main/java/def/js/ArrayLike.java b/core-lib/es6/src/main/java/def/js/ArrayLike.java new file mode 100644 index 00000000..b85a4cd5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ArrayLike.java @@ -0,0 +1,11 @@ +package def.js; +@jsweet.lang.Interface +@jsweet.lang.SyntacticIterable +public abstract class ArrayLike extends Iterable { + public double length; + native public T $get(double n); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/js/Boolean.java b/core-lib/es6/src/main/java/def/js/Boolean.java new file mode 100644 index 00000000..32e7bbbc --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Boolean.java @@ -0,0 +1,11 @@ +package def.js; +public class Boolean extends def.js.Object { + /** Returns the primitive value of the specified object. */ + native public java.lang.Boolean valueOf(); + public Boolean(java.lang.Object value){} + native public static java.lang.Boolean applyStatic(java.lang.Object value); + public static java.lang.Boolean prototype; + public Boolean(){} + native public static java.lang.Boolean applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/DataView.java b/core-lib/es6/src/main/java/def/js/DataView.java new file mode 100644 index 00000000..2a882738 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/DataView.java @@ -0,0 +1,120 @@ +package def.js; +public class DataView extends def.js.Object { + public ArrayBuffer buffer; + public double byteLength; + public double byteOffset; + /** + * Gets the Float32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getFloat32(double byteOffset, java.lang.Boolean littleEndian); + /** + * Gets the Float64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getFloat64(double byteOffset, java.lang.Boolean littleEndian); + /** + * Gets the Int8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getInt8(double byteOffset); + /** + * Gets the Int16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getInt16(double byteOffset, java.lang.Boolean littleEndian); + /** + * Gets the Int32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getInt32(double byteOffset, java.lang.Boolean littleEndian); + /** + * Gets the Uint8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getUint8(double byteOffset); + /** + * Gets the Uint16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getUint16(double byteOffset, java.lang.Boolean littleEndian); + /** + * Gets the Uint32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + native public double getUint32(double byteOffset, java.lang.Boolean littleEndian); + /** + * Stores an Float32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + native public void setFloat32(double byteOffset, double value, java.lang.Boolean littleEndian); + /** + * Stores an Float64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + native public void setFloat64(double byteOffset, double value, java.lang.Boolean littleEndian); + /** + * Stores an Int8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + native public void setInt8(double byteOffset, double value); + /** + * Stores an Int16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + native public void setInt16(double byteOffset, double value, java.lang.Boolean littleEndian); + /** + * Stores an Int32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + native public void setInt32(double byteOffset, double value, java.lang.Boolean littleEndian); + /** + * Stores an Uint8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + native public void setUint8(double byteOffset, double value); + /** + * Stores an Uint16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + native public void setUint16(double byteOffset, double value, java.lang.Boolean littleEndian); + /** + * Stores an Uint32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + native public void setUint32(double byteOffset, double value, java.lang.Boolean littleEndian); + native public java.lang.String $get(Symbol toStringTag); + public DataView(ArrayBuffer buffer, double byteOffset, double byteLength){} + public DataView(ArrayBuffer buffer, double byteOffset){} + public DataView(ArrayBuffer buffer){} + protected DataView(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Date.java b/core-lib/es6/src/main/java/def/js/Date.java new file mode 100644 index 00000000..4694969c --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Date.java @@ -0,0 +1,391 @@ +package def.js; +/** Enables basic storage and retrieval of dates and times. */ +public class Date extends def.js.Object { + /** Returns a string representation of a date. The format of the string depends on the locale. */ + native public java.lang.String toString(); + /** Returns a date as a string value. */ + native public java.lang.String toDateString(); + /** Returns a time as a string value. */ + native public java.lang.String toTimeString(); + /** Returns a value as a string value appropriate to the host environment's current locale. */ + native public java.lang.String toLocaleString(); + /** Returns a date as a string value appropriate to the host environment's current locale. */ + native public java.lang.String toLocaleDateString(); + /** Returns a time as a string value appropriate to the host environment's current locale. */ + native public java.lang.String toLocaleTimeString(); + /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ + native public Number valueOf(); + /** Gets the time value in milliseconds. */ + native public double getTime(); + /** Gets the year, using local time. */ + native public double getFullYear(); + /** Gets the year using Universal Coordinated Time (UTC). */ + native public double getUTCFullYear(); + /** Gets the month, using local time. */ + native public double getMonth(); + /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ + native public double getUTCMonth(); + /** Gets the day-of-the-month, using local time. */ + native public double getDate(); + /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ + native public double getUTCDate(); + /** Gets the day of the week, using local time. */ + native public double getDay(); + /** Gets the day of the week using Universal Coordinated Time (UTC). */ + native public double getUTCDay(); + /** Gets the hours in a date, using local time. */ + native public double getHours(); + /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ + native public double getUTCHours(); + /** Gets the minutes of a Date object, using local time. */ + native public double getMinutes(); + /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ + native public double getUTCMinutes(); + /** Gets the seconds of a Date object, using local time. */ + native public double getSeconds(); + /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ + native public double getUTCSeconds(); + /** Gets the milliseconds of a Date, using local time. */ + native public double getMilliseconds(); + /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ + native public double getUTCMilliseconds(); + /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ + native public double getTimezoneOffset(); + /** + * Sets the date and time value in the Date object. + * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. + */ + native public double setTime(double time); + /** + * Sets the milliseconds value in the Date object using local time. + * @param ms A numeric value equal to the millisecond value. + */ + native public double setMilliseconds(double ms); + /** + * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). + * @param ms A numeric value equal to the millisecond value. + */ + native public double setUTCMilliseconds(double ms); + /** + * Sets the seconds value in the Date object using local time. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setSeconds(double sec, double ms); + /** + * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCSeconds(double sec, double ms); + /** + * Sets the minutes value in the Date object using local time. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setMinutes(double min, double sec, double ms); + /** + * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCMinutes(double min, double sec, double ms); + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setHours(double hours, double min, double sec, double ms); + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCHours(double hours, double min, double sec, double ms); + /** + * Sets the numeric day-of-the-month value of the Date object using local time. + * @param date A numeric value equal to the day of the month. + */ + native public double setDate(double date); + /** + * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). + * @param date A numeric value equal to the day of the month. + */ + native public double setUTCDate(double date); + /** + * Sets the month value in the Date object using local time. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. + */ + native public double setMonth(double month, double date); + /** + * Sets the month value in the Date object using Universal Coordinated Time (UTC). + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. + */ + native public double setUTCMonth(double month, double date); + /** + * Sets the year of the Date object using local time. + * @param year A numeric value for the year. + * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. + * @param date A numeric value equal for the day of the month. + */ + native public double setFullYear(double year, double month, double date); + /** + * Sets the year value in the Date object using Universal Coordinated Time (UTC). + * @param year A numeric value equal to the year. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. + * @param date A numeric value equal to the day of the month. + */ + native public double setUTCFullYear(double year, double month, double date); + /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ + native public java.lang.String toUTCString(); + /** Returns a date as a string value in ISO format. */ + native public java.lang.String toISOString(); + /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ + native public java.lang.String toJSON(java.lang.Object key); + public Date(){} + public Date(double value){} + public Date(java.lang.String value){} + public Date(double year, double month, double date, double hours, double minutes, double seconds, double ms){} + native public static java.lang.String applyStatic(); + public static Date prototype; + /** + * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. + * @param s A date string + */ + native public static double parse(java.lang.String s); + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + native public static double UTC(double year, double month, double date, double hours, double minutes, double seconds, double ms); + native public static double now(); + /** + * Converts a date to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String[] locales, def.dom.intl.DateTimeFormatOptions options); + /** + * Converts a date to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String locale, def.dom.intl.DateTimeFormatOptions options); + /** + * Sets the seconds value in the Date object using local time. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setSeconds(double sec); + /** + * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCSeconds(double sec); + /** + * Sets the minutes value in the Date object using local time. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setMinutes(double min, double sec); + /** + * Sets the minutes value in the Date object using local time. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setMinutes(double min); + /** + * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCMinutes(double min, double sec); + /** + * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCMinutes(double min); + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setHours(double hours, double min, double sec); + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setHours(double hours, double min); + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setHours(double hours); + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCHours(double hours, double min, double sec); + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCHours(double hours, double min); + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + native public double setUTCHours(double hours); + /** + * Sets the month value in the Date object using local time. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. + */ + native public double setMonth(double month); + /** + * Sets the month value in the Date object using Universal Coordinated Time (UTC). + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. + */ + native public double setUTCMonth(double month); + /** + * Sets the year of the Date object using local time. + * @param year A numeric value for the year. + * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. + * @param date A numeric value equal for the day of the month. + */ + native public double setFullYear(double year, double month); + /** + * Sets the year of the Date object using local time. + * @param year A numeric value for the year. + * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. + * @param date A numeric value equal for the day of the month. + */ + native public double setFullYear(double year); + /** + * Sets the year value in the Date object using Universal Coordinated Time (UTC). + * @param year A numeric value equal to the year. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. + * @param date A numeric value equal to the day of the month. + */ + native public double setUTCFullYear(double year, double month); + /** + * Sets the year value in the Date object using Universal Coordinated Time (UTC). + * @param year A numeric value equal to the year. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. + * @param date A numeric value equal to the day of the month. + */ + native public double setUTCFullYear(double year); + /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ + native public java.lang.String toJSON(); + public Date(double year, double month, double date, double hours, double minutes, double seconds){} + public Date(double year, double month, double date, double hours, double minutes){} + public Date(double year, double month, double date, double hours){} + public Date(double year, double month, double date){} + public Date(double year, double month){} + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + native public static double UTC(double year, double month, double date, double hours, double minutes, double seconds); + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + native public static double UTC(double year, double month, double date, double hours, double minutes); + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + native public static double UTC(double year, double month, double date, double hours); + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + native public static double UTC(double year, double month, double date); + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + native public static double UTC(double year, double month); + /** + * Converts a date to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String[] locales); + /** + * Converts a date to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String locale); +} + diff --git a/core-lib/es6/src/main/java/def/js/Enumerator.java b/core-lib/es6/src/main/java/def/js/Enumerator.java new file mode 100644 index 00000000..c2ae4078 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Enumerator.java @@ -0,0 +1,28 @@ +package def.js; +/** + * Allows enumerating over a COM collection, which may not have indexed item access. + */ +public class Enumerator extends def.js.Object { + /** + * Returns true if the current item is the last one in the collection, or the collection is empty, + * or the current item is undefined. + */ + native public java.lang.Boolean atEnd(); + /** + * Returns the current item in the collection + */ + native public T item(); + /** + * Resets the current item in the collection to the first item. If there are no items in the collection, + * the current item is set to undefined. + */ + native public void moveFirst(); + /** + * Moves the current item to the next item in the collection. If the enumerator is at the end of + * the collection or the collection is empty, the current item is set to undefined. + */ + native public void moveNext(); + public Enumerator(java.lang.Object collection){} + protected Enumerator(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Error.java b/core-lib/es6/src/main/java/def/js/Error.java new file mode 100644 index 00000000..aeacabd2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Error.java @@ -0,0 +1,11 @@ +package def.js; +public class Error extends def.js.Object { + public java.lang.String name; + public java.lang.String message; + public Error(java.lang.String message){} + native public static Error applyStatic(java.lang.String message); + public static Error prototype; + public Error(){} + native public static Error applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/EvalError.java b/core-lib/es6/src/main/java/def/js/EvalError.java new file mode 100644 index 00000000..af5eedbc --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/EvalError.java @@ -0,0 +1,9 @@ +package def.js; +public class EvalError extends Error { + public EvalError(java.lang.String message){} + native public static EvalError applyStatic(java.lang.String message); + public static EvalError prototype; + public EvalError(){} + native public static EvalError applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/Float32Array.java b/core-lib/es6/src/main/java/def/js/Float32Array.java new file mode 100644 index 00000000..2c7d0072 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Float32Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number + * of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Float32Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Float32Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Float32Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float32Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float32Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Float32Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Float32Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Float32Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Float32Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Float32Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Float32Array prototype; + public Float32Array(double length){} + public Float32Array(Float32Array array){} + public Float32Array(double[] array){} + public Float32Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Float32Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Float32Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Float32Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Float32Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float32Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float32Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Float32Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Float32Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Float32Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Float32Array sort(); + /** + * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Float32Array subarray(double begin); + public Float32Array(ArrayBuffer buffer, double byteOffset){} + public Float32Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float32Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Float32Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Float64Array.java b/core-lib/es6/src/main/java/def/js/Float64Array.java new file mode 100644 index 00000000..ad94fef1 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Float64Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 64-bit float values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Float64Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Float64Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Float64Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float64Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float64Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Float64Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Float64Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Float64Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Float64Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Float64Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Float64Array prototype; + public Float64Array(double length){} + public Float64Array(Float64Array array){} + public Float64Array(double[] array){} + public Float64Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Float64Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Float64Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Float64Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Float64Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float64Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Float64Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Float64Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Float64Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Float64Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Float64Array sort(); + /** + * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Float64Array subarray(double begin); + public Float64Array(ArrayBuffer buffer, double byteOffset){} + public Float64Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Float64Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Float64Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Function.java b/core-lib/es6/src/main/java/def/js/Function.java new file mode 100644 index 00000000..627d6f12 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Function.java @@ -0,0 +1,53 @@ +package def.js; +/** + * Creates a new function. + */ +public class Function extends def.js.Object { + /** + * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. + * @param thisArg The object to be used as the this object. + * @param argArray A set of arguments to be passed to the function. + */ + native public java.lang.Object apply(java.lang.Object thisArg, java.lang.Object argArray); + /** + * Calls a method of an object, substituting another object for the current object. + * @param thisArg The object to be used as the current object. + * @param argArray A list of arguments to be passed to the method. + */ + native public java.lang.Object call(java.lang.Object thisArg, java.lang.Object... argArray); + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg An object to which the this keyword can refer inside the new function. + * @param argArray A list of arguments to be passed to the new function. + */ + native public java.lang.Object bind(java.lang.Object thisArg, java.lang.Object... argArray); + public java.lang.Object prototype; + public double length; + public java.lang.Object arguments; + public Function caller; + /** + * Creates a new function. + * @param args A list of arguments the function accepts. + */ + public Function(java.lang.String... args){} + native public static Function applyStatic(java.lang.String... args); + /** + * Returns a new function object that is identical to the argument object in all ways except + * for its identity and the value of its HomeObject internal slot. + */ + native public Function toMethod(java.lang.Object newHome); + /** + * Returns the name of the function. Function names are read-only and can not be changed. + */ + public java.lang.String name; + /** + * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. + * @param thisArg The object to be used as the this object. + * @param argArray A set of arguments to be passed to the function. + */ + native public java.lang.Object apply(java.lang.Object thisArg); + native public java.lang.Object caller(java.lang.Object... args); + protected Function(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/GeneratorFunction.java b/core-lib/es6/src/main/java/def/js/GeneratorFunction.java new file mode 100644 index 00000000..4456b0a4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/GeneratorFunction.java @@ -0,0 +1,12 @@ +package def.js; +public class GeneratorFunction extends Function { + /** + * Creates a new Generator function. + * @param args A list of arguments the function accepts. + */ + public GeneratorFunction(java.lang.String... args){} + native public static GeneratorFunction applyStatic(java.lang.String... args); + public static GeneratorFunction prototype; + protected GeneratorFunction(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Globals.java b/core-lib/es6/src/main/java/def/js/Globals.java new file mode 100644 index 00000000..6fe98cec --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Globals.java @@ -0,0 +1,546 @@ +package def.js; + +import def.dom.ActiveXObject; +import def.dom.ApplicationCache; +import def.dom.Audio; +import def.dom.BarProp; +import def.dom.BeforeUnloadEvent; +import def.dom.CSSRuleList; +import def.dom.CSSStyleDeclaration; +import def.dom.Console; +import def.dom.Crypto; +import def.dom.DeviceMotionEvent; +import def.dom.DeviceOrientationEvent; +import def.dom.Document; +import def.dom.DragEvent; +import def.dom.Element; +import def.dom.ErrorEventHandler; +import def.dom.Event; +import def.dom.EventListener; +import def.dom.EventListenerObject; +import def.dom.External; +import def.dom.FocusEvent; +import def.dom.FrameRequestCallback; +import def.dom.HashChangeEvent; +import def.dom.History; +import def.dom.IDBFactory; +import def.dom.Image; +import def.dom.KeyboardEvent; +import def.dom.Location; +import def.dom.MSGestureEvent; +import def.dom.MSPointerEvent; +import def.dom.MSTemplatePrinter; +import def.dom.MediaQueryList; +import def.dom.MessageEvent; +import def.dom.MouseEvent; +import def.dom.MouseWheelEvent; +import def.dom.Navigator; +import def.dom.Node; +import def.dom.Option; +import def.dom.PageTransitionEvent; +import def.dom.Performance; +import def.dom.PointerEvent; +import def.dom.PopStateEvent; +import def.dom.ProgressEvent; +import def.dom.Screen; +import def.dom.Selection; +import def.dom.Storage; +import def.dom.StorageEvent; +import def.dom.StyleMedia; +import def.dom.UIEvent; +import def.dom.WebKitPoint; +import def.dom.WheelEvent; +import def.dom.Window; + +/** This class holds all the global functions and variables of the def.js package. */ +public final class Globals { + private Globals(){} + public static double NaN; + public static double Infinity; + /** + * Evaluates JavaScript code and executes it. + * @param x A String value that contains valid JavaScript code. + */ + native public static java.lang.Object eval(java.lang.String x); + /** + * Converts A string to an integer. + * @param s A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in numString. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ + native public static double parseInt(java.lang.String s, double radix); + /** + * Converts a string to a floating-point number. + * @param string A string that contains a floating-point number. + */ + native public static double parseFloat(java.lang.String string); + /** + * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). + * @param number A numeric value. + */ + native public static java.lang.Boolean isNaN(double number); + /** + * Determines whether a supplied number is finite. + * @param number Any numeric value. + */ + native public static java.lang.Boolean isFinite(double number); + /** + * Gets the unencoded version of an encoded Uniform Resource Identifier (URI). + * @param encodedURI A value representing an encoded URI. + */ + native public static java.lang.String decodeURI(java.lang.String encodedURI); + /** + * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI). + * @param encodedURIComponent A value representing an encoded URI component. + */ + native public static java.lang.String decodeURIComponent(java.lang.String encodedURIComponent); + /** + * Encodes a text string as a valid Uniform Resource Identifier (URI) + * @param uri A value representing an encoded URI. + */ + native public static java.lang.String encodeURI(java.lang.String uri); + /** + * Encodes a text string as a valid component of a Uniform Resource Identifier (URI). + * @param uriComponent A value representing an encoded URI component. + */ + native public static java.lang.String encodeURIComponent(java.lang.String uriComponent); + public static ProxyConstructor Proxy; + public static Audio Audio; + public static Image Image; + public static Option Option; + public static double animationStartTime; + public static ApplicationCache applicationCache; + public static Navigator clientInformation; + public static java.lang.Boolean closed; + public static Crypto crypto; + public static java.lang.String defaultStatus; + public static double devicePixelRatio; + public static java.lang.String doNotTrack; + public static Document document; + public static Event event; + public static External external; + public static Element frameElement; + public static Window frames; + public static History history; + public static double innerHeight; + public static double innerWidth; + public static double length; + public static Location location; + public static BarProp locationbar; + public static BarProp menubar; + public static double msAnimationStartTime; + public static MSTemplatePrinter msTemplatePrinter; + public static java.lang.String name; + public static Navigator navigator; + public static jsweet.util.union.Union offscreenBuffering; + public static java.util.function.Function onabort; + public static java.util.function.Function onafterprint; + public static java.util.function.Function onbeforeprint; + public static java.util.function.Function onbeforeunload; + public static java.util.function.Function onblur; + public static java.util.function.Function oncanplay; + public static java.util.function.Function oncanplaythrough; + public static java.util.function.Function onchange; + public static java.util.function.Function onclick; + public static java.util.function.Function oncompassneedscalibration; + public static java.util.function.Function oncontextmenu; + public static java.util.function.Function ondblclick; + public static java.util.function.Function ondevicemotion; + public static java.util.function.Function ondeviceorientation; + public static java.util.function.Function ondrag; + public static java.util.function.Function ondragend; + public static java.util.function.Function ondragenter; + public static java.util.function.Function ondragleave; + public static java.util.function.Function ondragover; + public static java.util.function.Function ondragstart; + public static java.util.function.Function ondrop; + public static java.util.function.Function ondurationchange; + public static java.util.function.Function onemptied; + public static java.util.function.Function onended; + public static ErrorEventHandler onerror; + public static java.util.function.Function onfocus; + public static java.util.function.Function onhashchange; + public static java.util.function.Function oninput; + public static java.util.function.Function onkeydown; + public static java.util.function.Function onkeypress; + public static java.util.function.Function onkeyup; + public static java.util.function.Function onload; + public static java.util.function.Function onloadeddata; + public static java.util.function.Function onloadedmetadata; + public static java.util.function.Function onloadstart; + public static java.util.function.Function onmessage; + public static java.util.function.Function onmousedown; + public static java.util.function.Function onmouseenter; + public static java.util.function.Function onmouseleave; + public static java.util.function.Function onmousemove; + public static java.util.function.Function onmouseout; + public static java.util.function.Function onmouseover; + public static java.util.function.Function onmouseup; + public static java.util.function.Function onmousewheel; + public static java.util.function.Function onmsgesturechange; + public static java.util.function.Function onmsgesturedoubletap; + public static java.util.function.Function onmsgestureend; + public static java.util.function.Function onmsgesturehold; + public static java.util.function.Function onmsgesturestart; + public static java.util.function.Function onmsgesturetap; + public static java.util.function.Function onmsinertiastart; + public static java.util.function.Function onmspointercancel; + public static java.util.function.Function onmspointerdown; + public static java.util.function.Function onmspointerenter; + public static java.util.function.Function onmspointerleave; + public static java.util.function.Function onmspointermove; + public static java.util.function.Function onmspointerout; + public static java.util.function.Function onmspointerover; + public static java.util.function.Function onmspointerup; + public static java.util.function.Function onoffline; + public static java.util.function.Function ononline; + public static java.util.function.Function onorientationchange; + public static java.util.function.Function onpagehide; + public static java.util.function.Function onpageshow; + public static java.util.function.Function onpause; + public static java.util.function.Function onplay; + public static java.util.function.Function onplaying; + public static java.util.function.Function onpopstate; + public static java.util.function.Function onprogress; + public static java.util.function.Function onratechange; + public static java.util.function.Function onreadystatechange; + public static java.util.function.Function onreset; + public static java.util.function.Function onresize; + public static java.util.function.Function onscroll; + public static java.util.function.Function onseeked; + public static java.util.function.Function onseeking; + public static java.util.function.Function onselect; + public static java.util.function.Function onstalled; + public static java.util.function.Function onstorage; + public static java.util.function.Function onsubmit; + public static java.util.function.Function onsuspend; + public static java.util.function.Function ontimeupdate; + public static java.lang.Object ontouchcancel; + public static java.lang.Object ontouchend; + public static java.lang.Object ontouchmove; + public static java.lang.Object ontouchstart; + public static java.util.function.Function onunload; + public static java.util.function.Function onvolumechange; + public static java.util.function.Function onwaiting; + public static Window opener; + public static java.lang.String orientation; + public static double outerHeight; + public static double outerWidth; + public static double pageXOffset; + public static double pageYOffset; + public static Window parent; + public static Performance performance; + public static BarProp personalbar; + public static Screen screen; + public static double screenLeft; + public static double screenTop; + public static double screenX; + public static double screenY; + public static double scrollX; + public static double scrollY; + public static BarProp scrollbars; + public static Window self; + public static java.lang.String status; + public static BarProp statusbar; + public static StyleMedia styleMedia; + public static BarProp toolbar; + public static Window top; + public static Window window; + native public static void alert(java.lang.Object message); + native public static void blur(); + native public static void cancelAnimationFrame(double handle); + native public static void captureEvents(); + native public static void close(); + native public static java.lang.Boolean confirm(java.lang.String message); + native public static void focus(); + native public static CSSStyleDeclaration getComputedStyle(Element elt, java.lang.String pseudoElt); + native public static CSSRuleList getMatchedCSSRules(Element elt, java.lang.String pseudoElt); + native public static Selection getSelection(); + native public static MediaQueryList matchMedia(java.lang.String mediaQuery); + native public static void moveBy(double x, double y); + native public static void moveTo(double x, double y); + native public static void msCancelRequestAnimationFrame(double handle); + native public static MediaQueryList msMatchMedia(java.lang.String mediaQuery); + native public static double msRequestAnimationFrame(FrameRequestCallback callback); + native public static void msWriteProfilerMark(java.lang.String profilerMarkName); + native public static java.lang.Object open(java.lang.String url, java.lang.String target, java.lang.String features, java.lang.Boolean replace); + native public static void postMessage(java.lang.Object message, java.lang.String targetOrigin, java.lang.Object ports); + native public static void print(); + native public static java.lang.String prompt(java.lang.String message, java.lang.String _default); + native public static void releaseEvents(); + native public static double requestAnimationFrame(FrameRequestCallback callback); + native public static void resizeBy(double x, double y); + native public static void resizeTo(double x, double y); + native public static void scroll(double x, double y); + native public static void scrollBy(double x, double y); + native public static void scrollTo(double x, double y); + native public static WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint pt); + native public static WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint pt); + native public static java.lang.String ToString(); + native public static java.lang.Boolean dispatchEvent(Event evt); + native public static void removeEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public static void clearInterval(double handle); + native public static void clearTimeout(double handle); + native public static double setInterval(java.lang.Object handler, java.lang.Object timeout, java.lang.Object... args); + native public static double setTimeout(java.lang.Object handler, java.lang.Object timeout, java.lang.Object... args); + native public static void clearImmediate(double handle); + native public static void msClearImmediate(double handle); + native public static double msSetImmediate(java.lang.Object expression, java.lang.Object... args); + native public static double setImmediate(java.lang.Object expression, java.lang.Object... args); + public static Storage sessionStorage; + public static Storage localStorage; + public static Console console; + public static java.util.function.Function onpointercancel; + public static java.util.function.Function onpointerdown; + public static java.util.function.Function onpointerenter; + public static java.util.function.Function onpointerleave; + public static java.util.function.Function onpointermove; + public static java.util.function.Function onpointerout; + public static java.util.function.Function onpointerover; + public static java.util.function.Function onpointerup; + public static java.util.function.Function onwheel; + public static IDBFactory indexedDB; + public static IDBFactory msIndexedDB; + native public static java.lang.String atob(java.lang.String encodedString); + native public static java.lang.String btoa(java.lang.String rawString); + native public static void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.afterprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.compassneedscalibration type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.devicemotion type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.deviceorientation type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.popstate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener, java.lang.Boolean useCapture); + native public static void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean useCapture); + native public static void importScripts(java.lang.String... urls); + public static ActiveXObject ActiveXObject; + /** + * Converts A string to an integer. + * @param s A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in numString. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ + native public static double parseInt(java.lang.String s); + native public static void alert(); + native public static java.lang.Boolean confirm(); + native public static CSSStyleDeclaration getComputedStyle(Element elt); + native public static CSSRuleList getMatchedCSSRules(Element elt); + native public static void moveBy(double x); + native public static void moveBy(); + native public static void moveTo(double x); + native public static void moveTo(); + native public static java.lang.Object open(java.lang.String url, java.lang.String target, java.lang.String features); + native public static java.lang.Object open(java.lang.String url, java.lang.String target); + native public static java.lang.Object open(java.lang.String url); + native public static java.lang.Object open(); + native public static void postMessage(java.lang.Object message, java.lang.String targetOrigin); + native public static java.lang.String prompt(java.lang.String message); + native public static java.lang.String prompt(); + native public static void resizeBy(double x); + native public static void resizeBy(); + native public static void resizeTo(double x); + native public static void resizeTo(); + native public static void scroll(double x); + native public static void scroll(); + native public static void scrollBy(double x); + native public static void scrollBy(); + native public static void scrollTo(double x); + native public static void scrollTo(); + native public static void addEventListener(java.lang.String type, EventListener listener); + native public static void removeEventListener(java.lang.String type, EventListener listener); + native public static double setInterval(java.lang.Object handler); + native public static double setTimeout(java.lang.Object handler); + native public static void addEventListener(def.js.StringTypes.MSGestureChange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSGestureDoubleTap type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSGestureEnd type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSGestureHold type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSGestureStart type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSGestureTap type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSInertiaStart type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerCancel type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerDown type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerEnter type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerLeave type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerMove type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerOut type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerOver type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.MSPointerUp type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.abort type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.afterprint type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.beforeprint type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.beforeunload type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.blur type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.canplay type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.canplaythrough type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.change type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.click type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.compassneedscalibration type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.contextmenu type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.dblclick type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.devicemotion type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.deviceorientation type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.drag type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.dragend type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.dragenter type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.dragleave type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.dragover type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.dragstart type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.drop type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.durationchange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.emptied type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.ended type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.focus type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.hashchange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.input type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.keydown type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.keypress type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.keyup type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.load type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.loadeddata type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.loadedmetadata type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.loadstart type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.message type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mousedown type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mouseenter type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mouseleave type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mousemove type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mouseout type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mouseover type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mouseup type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.mousewheel type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.offline type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.online type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.orientationchange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pagehide type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pageshow type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pause type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.play type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.playing type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointercancel type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointerdown type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointerenter type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointerleave type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointermove type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointerout type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointerover type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.pointerup type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.popstate type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.progress type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.ratechange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.readystatechange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.reset type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.resize type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.scroll type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.seeked type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.seeking type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.select type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.stalled type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.storage type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.submit type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.suspend type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.timeupdate type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.unload type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.volumechange type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.waiting type, java.util.function.Function listener); + native public static void addEventListener(def.js.StringTypes.wheel type, java.util.function.Function listener); + native public static void removeEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public static void addEventListener(java.lang.String type, EventListenerObject listener, java.lang.Boolean useCapture); + native public static void addEventListener(java.lang.String type, EventListenerObject listener); + native public static void removeEventListener(java.lang.String type, EventListenerObject listener); + native public static void onerror(def.dom.Event event, def.js.String source, double fileno, double columnNumber); + native public static void onerror(def.js.String event, def.js.String source, double fileno, double columnNumber); + native public static void onerror(def.dom.Event event, def.js.String source, double fileno); + native public static void onerror(def.dom.Event event, def.js.String source); + native public static void onerror(def.dom.Event event); + native public static void onerror(def.js.String event, def.js.String source, double fileno); + native public static void onerror(def.js.String event, def.js.String source); + native public static void onerror(def.js.String event); +} + diff --git a/core-lib/es6/src/main/java/def/js/IArguments.java b/core-lib/es6/src/main/java/def/js/IArguments.java new file mode 100644 index 00000000..1ca28a1d --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/IArguments.java @@ -0,0 +1,13 @@ +package def.js; +@jsweet.lang.Interface +@jsweet.lang.SyntacticIterable +public abstract class IArguments extends Iterable { + native public java.lang.Object $get(double index); + public double length; + public Function callee; + native public java.lang.Object callee(java.lang.Object... args); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/js/ITextWriter.java b/core-lib/es6/src/main/java/def/js/ITextWriter.java new file mode 100644 index 00000000..777fd24f --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ITextWriter.java @@ -0,0 +1,8 @@ +package def.js; +@jsweet.lang.Interface +public abstract class ITextWriter extends def.js.Object { + native public void Write(java.lang.String s); + native public void WriteLine(java.lang.String s); + native public void Close(); +} + diff --git a/core-lib/es6/src/main/java/def/js/Int16Array.java b/core-lib/es6/src/main/java/def/js/Int16Array.java new file mode 100644 index 00000000..34f94d96 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Int16Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Int16Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Int16Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int16Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int16Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int16Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Int16Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Int16Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int16Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Int16Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Int16Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Int16Array prototype; + public Int16Array(double length){} + public Int16Array(Int16Array array){} + public Int16Array(double[] array){} + public Int16Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Int16Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Int16Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int16Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int16Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int16Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int16Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Int16Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int16Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int16Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Int16Array sort(); + /** + * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Int16Array subarray(double begin); + public Int16Array(ArrayBuffer buffer, double byteOffset){} + public Int16Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int16Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Int16Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Int32Array.java b/core-lib/es6/src/main/java/def/js/Int32Array.java new file mode 100644 index 00000000..4517d86d --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Int32Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Int32Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Int32Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int32Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int32Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int32Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Int32Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Int32Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int32Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Int32Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Int32Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Int32Array prototype; + public Int32Array(double length){} + public Int32Array(Int32Array array){} + public Int32Array(double[] array){} + public Int32Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Int32Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Int32Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int32Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int32Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int32Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int32Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Int32Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int32Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int32Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Int32Array sort(); + /** + * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Int32Array subarray(double begin); + public Int32Array(ArrayBuffer buffer, double byteOffset){} + public Int32Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int32Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Int32Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Int8Array.java b/core-lib/es6/src/main/java/def/js/Int8Array.java new file mode 100644 index 00000000..c2b48085 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Int8Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Int8Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Int8Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int8Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int8Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int8Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Int8Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Int8Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int8Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Int8Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Int8Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Int8Array prototype; + public Int8Array(double length){} + public Int8Array(Int8Array array){} + public Int8Array(double[] array){} + public Int8Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Int8Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Int8Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int8Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Int8Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int8Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Int8Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Int8Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int8Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Int8Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Int8Array sort(); + /** + * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Int8Array subarray(double begin); + public Int8Array(ArrayBuffer buffer, double byteOffset){} + public Int8Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Int8Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Int8Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Iterable.java b/core-lib/es6/src/main/java/def/js/Iterable.java new file mode 100644 index 00000000..a8df17fa --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Iterable.java @@ -0,0 +1,5 @@ +package def.js; +@jsweet.lang.Interface +public abstract class Iterable extends def.js.Object { +} + diff --git a/core-lib/es6/src/main/java/def/js/IterableIterator.java b/core-lib/es6/src/main/java/def/js/IterableIterator.java new file mode 100644 index 00000000..a176c92b --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/IterableIterator.java @@ -0,0 +1,5 @@ +package def.js; +@jsweet.lang.Interface +public abstract class IterableIterator extends Iterator { +} + diff --git a/core-lib/es6/src/main/java/def/js/Iterator.java b/core-lib/es6/src/main/java/def/js/Iterator.java new file mode 100644 index 00000000..c85ba473 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Iterator.java @@ -0,0 +1,15 @@ +package def.js; +@jsweet.lang.Interface +public abstract class Iterator extends def.js.Object { + native public IteratorResult next(java.lang.Object value); + @jsweet.lang.Name("return") + native public IteratorResult Return(java.lang.Object value); + @jsweet.lang.Name("throw") + native public IteratorResult Throw(java.lang.Object e); + native public IteratorResult next(); + @jsweet.lang.Name("return") + native public IteratorResult Return(); + @jsweet.lang.Name("throw") + native public IteratorResult Throw(); +} + diff --git a/core-lib/es6/src/main/java/def/js/IteratorResult.java b/core-lib/es6/src/main/java/def/js/IteratorResult.java new file mode 100644 index 00000000..fa0813fd --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/IteratorResult.java @@ -0,0 +1,8 @@ +package def.js; +@jsweet.lang.Interface +public abstract class IteratorResult extends def.js.Object { + public java.lang.Boolean done; + @jsweet.lang.Optional + public T value; +} + diff --git a/core-lib/es6/src/main/java/def/js/JSON.java b/core-lib/es6/src/main/java/def/js/JSON.java new file mode 100644 index 00000000..72c7faa8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/JSON.java @@ -0,0 +1,51 @@ +package def.js; +@jsweet.lang.Interface +public abstract class JSON extends def.js.Object { + /** + * Converts a JavaScript Object Notation (JSON) string into an object. + * @param text A valid JSON string. + * @param reviver A function that transforms the results. This function is called for each member of the object. + * If a member contains nested objects, the nested objects are transformed before the parent object is. + */ + native public static java.lang.Object parse(java.lang.String text, java.util.function.BiFunction reviver); + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + */ + native public static java.lang.String stringify(java.lang.Object value); + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer A function that transforms the results. + */ + native public static java.lang.String stringify(java.lang.Object value, java.util.function.BiFunction replacer); + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer Array that transforms the results. + */ + native public static java.lang.String stringify(java.lang.Object value, java.lang.Object[] replacer); + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer A function that transforms the results. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + native public static java.lang.String stringify(java.lang.Object value, java.util.function.BiFunction replacer, java.lang.Object space); + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer Array that transforms the results. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + native public static java.lang.String stringify(java.lang.Object value, java.lang.Object[] replacer, java.lang.Object space); + native public static java.lang.String $getStatic(Symbol toStringTag); + /** + * Converts a JavaScript Object Notation (JSON) string into an object. + * @param text A valid JSON string. + * @param reviver A function that transforms the results. This function is called for each member of the object. + * If a member contains nested objects, the nested objects are transformed before the parent object is. + */ + native public static java.lang.Object parse(java.lang.String text); +} + diff --git a/core-lib/es6/src/main/java/def/js/Map.java b/core-lib/es6/src/main/java/def/js/Map.java new file mode 100644 index 00000000..5c45c5a8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Map.java @@ -0,0 +1,20 @@ +package def.js; +public class Map extends def.js.Object { + native public void clear(); + native public java.lang.Boolean delete(K key); + native public IterableIterator> entries(); + native public void forEach(jsweet.util.function.TriConsumer> callbackfn, java.lang.Object thisArg); + native public V get(K key); + native public java.lang.Boolean has(K key); + native public IterableIterator keys(); + native public Map set(K key, V value); + public double size; + native public IterableIterator values(); + native public java.lang.String $get(Symbol toStringTag); + public Map(){} + public Map(Iterable> iterable){} + public static Map prototype; + native public void forEach(jsweet.util.function.TriConsumer> callbackfn); + native public Map set(K key); +} + diff --git a/core-lib/es6/src/main/java/def/js/Math.java b/core-lib/es6/src/main/java/def/js/Math.java new file mode 100644 index 00000000..119f79b0 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Math.java @@ -0,0 +1,205 @@ +package def.js; +@jsweet.lang.Interface +public abstract class Math extends def.js.Object { + /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */ + public static double E; + /** The natural logarithm of 10. */ + public static double LN10; + /** The natural logarithm of 2. */ + public static double LN2; + /** The base-2 logarithm of e. */ + public static double LOG2E; + /** The base-10 logarithm of e. */ + public static double LOG10E; + /** Pi. This is the ratio of the circumference of a circle to its diameter. */ + public static double PI; + /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */ + public static double SQRT1_2; + /** The square root of 2. */ + public static double SQRT2; + /** + * Returns the absolute value of a number (the value without regard to whether it is positive or negative). + * For example, the absolute value of -5 is the same as the absolute value of 5. + * @param x A numeric expression for which the absolute value is needed. + */ + native public static double abs(double x); + /** + * Returns the arc cosine (or inverse cosine) of a number. + * @param x A numeric expression. + */ + native public static double acos(double x); + /** + * Returns the arcsine of a number. + * @param x A numeric expression. + */ + native public static double asin(double x); + /** + * Returns the arctangent of a number. + * @param x A numeric expression for which the arctangent is needed. + */ + native public static double atan(double x); + /** + * Returns the angle (in radians) from the X axis to a point. + * @param y A numeric expression representing the cartesian y-coordinate. + * @param x A numeric expression representing the cartesian x-coordinate. + */ + native public static double atan2(double y, double x); + /** + * Returns the smallest number greater than or equal to its numeric argument. + * @param x A numeric expression. + */ + native public static double ceil(double x); + /** + * Returns the cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double cos(double x); + /** + * Returns e (the base of natural logarithms) raised to a power. + * @param x A numeric expression representing the power of e. + */ + native public static double exp(double x); + /** + * Returns the greatest number less than or equal to its numeric argument. + * @param x A numeric expression. + */ + native public static double floor(double x); + /** + * Returns the natural logarithm (base e) of a number. + * @param x A numeric expression. + */ + native public static double log(double x); + /** + * Returns the larger of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + native public static double max(double... values); + /** + * Returns the smaller of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + native public static double min(double... values); + /** + * Returns the value of a base expression taken to a specified power. + * @param x The base value of the expression. + * @param y The exponent value of the expression. + */ + native public static double pow(double x, double y); + /** Returns a pseudorandom number between 0 and 1. */ + native public static double random(); + /** + * Returns a supplied numeric expression rounded to the nearest number. + * @param x The value to be rounded to the nearest number. + */ + native public static double round(double x); + /** + * Returns the sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double sin(double x); + /** + * Returns the square root of a number. + * @param x A numeric expression. + */ + native public static double sqrt(double x); + /** + * Returns the tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double tan(double x); + /** + * Returns the number of leading zero bits in the 32-bit binary representation of a number. + * @param x A numeric expression. + */ + native public static double clz32(double x); + /** + * Returns the result of 32-bit multiplication of two numbers. + * @param x First number + * @param y Second number + */ + native public static double imul(double x, double y); + /** + * Returns the sign of the x, indicating whether x is positive, negative or zero. + * @param x The numeric expression to test + */ + native public static double sign(double x); + /** + * Returns the base 10 logarithm of a number. + * @param x A numeric expression. + */ + native public static double log10(double x); + /** + * Returns the base 2 logarithm of a number. + * @param x A numeric expression. + */ + native public static double log2(double x); + /** + * Returns the natural logarithm of 1 + x. + * @param x A numeric expression. + */ + native public static double log1p(double x); + /** + * Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of + * the natural logarithms). + * @param x A numeric expression. + */ + native public static double expm1(double x); + /** + * Returns the hyperbolic cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double cosh(double x); + /** + * Returns the hyperbolic sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double sinh(double x); + /** + * Returns the hyperbolic tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double tanh(double x); + /** + * Returns the inverse hyperbolic cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double acosh(double x); + /** + * Returns the inverse hyperbolic sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double asinh(double x); + /** + * Returns the inverse hyperbolic tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + native public static double atanh(double x); + /** + * Returns the square root of the sum of squares of its arguments. + * @param values Values to compute the square root for. + * If no arguments are passed, the result is +0. + * If there is only one argument, the result is the absolute value. + * If any argument is +Infinity or -Infinity, the result is +Infinity. + * If any argument is NaN, the result is NaN. + * If all arguments are either +0 or −0, the result is +0. + */ + native public static double hypot(double... values); + /** + * Returns the integral part of the a numeric expression, x, removing any fractional digits. + * If x is already an integer, the result is x. + * @param x A numeric expression. + */ + native public static double trunc(double x); + /** + * Returns the nearest single precision float representation of a number. + * @param x A numeric expression. + */ + native public static double fround(double x); + /** + * Returns an implementation-dependent approximation to the cube root of number. + * @param x A numeric expression. + */ + native public static double cbrt(double x); + native public static java.lang.String $getStatic(Symbol toStringTag); +} + diff --git a/core-lib/es6/src/main/java/def/js/Number.java b/core-lib/es6/src/main/java/def/js/Number.java new file mode 100644 index 00000000..ca516c46 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Number.java @@ -0,0 +1,100 @@ +package def.js; +public class Number extends def.js.Object { + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. + */ + native public java.lang.String toString(double radix); + /** + * Returns a string representing a number in fixed-point notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + native public java.lang.String toFixed(double fractionDigits); + /** + * Returns a string containing a number represented in exponential notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + native public java.lang.String toExponential(double fractionDigits); + /** + * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. + * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. + */ + native public java.lang.String toPrecision(double precision); + /** Returns the primitive value of the specified object. */ + native public Number valueOf(); + public Number(java.lang.Object value){} + native public static Number applyStatic(java.lang.Object value); + public static Number prototype; + /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */ + public static double MAX_VALUE; + /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */ + public static double MIN_VALUE; + /** + * A value that is not a number. + * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. + */ + public static double NaN; + /** + * A value that is less than the largest negative number that can be represented in JavaScript. + * JavaScript displays NEGATIVE_INFINITY values as -infinity. + */ + public static double NEGATIVE_INFINITY; + /** + * A value greater than the largest number that can be represented in JavaScript. + * JavaScript displays POSITIVE_INFINITY values as infinity. + */ + public static double POSITIVE_INFINITY; + /** + * Converts a number to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String[] locales, def.dom.intl.NumberFormatOptions options); + /** + * Converts a number to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String locale, def.dom.intl.NumberFormatOptions options); + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. + */ + native public java.lang.String toString(); + /** + * Returns a string representing a number in fixed-point notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + native public java.lang.String toFixed(); + /** + * Returns a string containing a number represented in exponential notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + native public java.lang.String toExponential(); + /** + * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. + * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. + */ + native public java.lang.String toPrecision(); + public Number(){} + native public static Number applyStatic(); + /** + * Converts a number to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String[] locales); + /** + * Converts a number to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(); + /** + * Converts a number to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + native public java.lang.String toLocaleString(java.lang.String locale); +} + diff --git a/core-lib/es6/src/main/java/def/js/Object.java b/core-lib/es6/src/main/java/def/js/Object.java new file mode 100644 index 00000000..469320be --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Object.java @@ -0,0 +1,131 @@ +package def.js; +public class Object { + /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */ + public Function constructor; + /** Returns a string representation of an object. */ + native public java.lang.String toString(); + /** Returns a date converted to a string using the current locale. */ + native public java.lang.String toLocaleString(); + /** Returns the primitive value of the specified object. */ + native public java.lang.Object valueOf(); + /** + * Determines whether an object exists in another object's prototype chain. + * @param v Another object whose prototype chain is to be checked. + */ + native public java.lang.Boolean isPrototypeOf(java.lang.Object v); + public Object(java.lang.Object value){} + native public static java.lang.Object applyStatic(); + native public static java.lang.Object applyStatic(java.lang.Object value); + /** A reference to the prototype for a class of objects. */ + public static java.lang.Object prototype; + /** + * Returns the prototype of an object. + * @param o The object that references the prototype. + */ + native public static java.lang.Object getPrototypeOf(java.lang.Object o); + /** + * Gets the own property descriptor of the specified object. + * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. + * @param o Object that contains the property. + * @param p Name of the property. + */ + native public static PropertyDescriptor getOwnPropertyDescriptor(java.lang.Object o, java.lang.String p); + /** + * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly + * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions. + * @param o Object that contains the own properties. + */ + native public static java.lang.String[] getOwnPropertyNames(java.lang.Object o); + /** + * Creates an object that has the specified prototype, and that optionally contains specified properties. + * @param o Object to use as a prototype. May be null + * @param properties JavaScript object that contains one or more property descriptors. + */ + native public static java.lang.Object create(java.lang.Object o, PropertyDescriptorMap properties); + /** + * Adds a property to an object, or modifies attributes of an existing property. + * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object. + * @param p The property name. + * @param attributes Descriptor for the property. It can be for a data property or an accessor property. + */ + native public static java.lang.Object defineProperty(java.lang.Object o, java.lang.String p, PropertyDescriptor attributes); + /** + * Adds one or more properties to an object, and/or modifies attributes of existing properties. + * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. + * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. + */ + native public static java.lang.Object defineProperties(java.lang.Object o, PropertyDescriptorMap properties); + /** + * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + native public static T seal(T o); + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + native public static T freeze(T o); + /** + * Prevents the addition of new properties to an object. + * @param o Object to make non-extensible. + */ + native public static T preventExtensions(T o); + /** + * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. + * @param o Object to test. + */ + native public static java.lang.Boolean isSealed(java.lang.Object o); + /** + * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object. + * @param o Object to test. + */ + native public static java.lang.Boolean isFrozen(java.lang.Object o); + /** + * Returns a value that indicates whether new properties can be added to an object. + * @param o Object to test. + */ + native public static java.lang.Boolean isExtensible(java.lang.Object o); + /** + * Returns the names of the enumerable properties and methods of an object. + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + native public static java.lang.String[] keys(java.lang.Object o); + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + native public java.lang.Boolean hasOwnProperty(java.lang.String v); + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + native public java.lang.Boolean propertyIsEnumerable(java.lang.String v); + public Object(){} + /** + * Creates an object that has the specified prototype, and that optionally contains specified properties. + * @param o Object to use as a prototype. May be null + * @param properties JavaScript object that contains one or more property descriptors. + */ + native public static java.lang.Object create(java.lang.Object o); + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + native public java.lang.Boolean hasOwnProperty(double v); + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + native public java.lang.Boolean hasOwnProperty(String v); + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + native public java.lang.Boolean propertyIsEnumerable(String v); + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + native public java.lang.Boolean propertyIsEnumerable(double v); +} + diff --git a/core-lib/es6/src/main/java/def/js/Promise.java b/core-lib/es6/src/main/java/def/js/Promise.java new file mode 100644 index 00000000..681506d3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Promise.java @@ -0,0 +1,181 @@ +package def.js; + +/** + * Represents the completion of an asynchronous operation + */ +public class Promise extends def.js.Object { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledFunctionOnrejectedFunction(java.util.function.Function onfulfilled, java.util.function.Function onrejected); + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledFunction(java.util.function.Function onfulfilled, java.util.function.Consumer onrejected); + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + @jsweet.lang.Name("catch") + native public Promise catchOnrejectedFunction(java.util.function.Function onrejected); + native public java.lang.String $get(Symbol toStringTag); + /** + * A reference to the prototype. + */ + public static Promise prototype; + /** + * Creates a new Promise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + public Promise(ExecutorBiConsumer,java.util.function.Consumer> executor){} + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + native public static Promise all(IterableT values); + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + native public static Promise race(IterableT values); + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected Promise. + */ + native public static Promise reject(java.lang.Object reason); + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + native public static Promise resolve(T value); + /** + * Creates a new resolved promise . + * @returns A resolved promise. + */ + native public static Promise resolve(); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledFunction(java.util.function.Function onfulfilled); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + native public Promise then(); + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + @jsweet.lang.Name("catch") + native public Promise Catch(); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledFunctionOnrejectedPromiseLikeFunction(java.util.function.Function onfulfilled, java.util.function.Function> onrejected); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledPromiseLikeFunctionOnrejectedPromiseLikeFunction(java.util.function.Function> onfulfilled, java.util.function.Function> onrejected); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledPromiseLikeFunctionOnrejectedFunction(java.util.function.Function> onfulfilled, java.util.function.Function onrejected); + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledPromiseLikeFunction(java.util.function.Function> onfulfilled, java.util.function.Consumer onrejected); + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + @jsweet.lang.Name("catch") + native public Promise catchOnrejectedPromiseLikeFunction(java.util.function.Function> onrejected); + /** + * Creates a new Promise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + public Promise(ExecutorPromiseLikeBiConsumer>,java.util.function.Consumer> executor){} + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + native public static Promise all(IterablePromiseLikeT values); + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + native public static Promise race(IterablePromiseLikeT values); + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + native public static Promise resolve(PromiseLike value); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public Promise thenOnfulfilledPromiseLikeFunction(java.util.function.Function> onfulfilled); + protected Promise(){} + /** This functional interface should be used for disambiguating lambdas in function parameters (by casting to this interface).

It was automatically generated for functions (taking lambdas) that lead to the same erased signature. */ + @java.lang.FunctionalInterface() + @jsweet.lang.Erased + public interface ExecutorPromiseLikeBiConsumer { + public void apply(T1 p1, T2 p2); + } + /** This functional interface should be used for disambiguating lambdas in function parameters (by casting to this interface).

It was automatically generated for functions (taking lambdas) that lead to the same erased signature. */ + @java.lang.FunctionalInterface() + @jsweet.lang.Erased + public interface ExecutorBiConsumer { + public void apply(T1 p1, T2 p2); + } + /** This class was automatically generated for disambiguating erased method signatures. */ + @jsweet.lang.Erased + public static class IterableT extends def.js.Object { + public IterableT(Iterable values){} + } + /** This class was automatically generated for disambiguating erased method signatures. */ + @jsweet.lang.Erased + public static class IterablePromiseLikeT extends def.js.Object { + public IterablePromiseLikeT(Iterable> values){} + } +} + diff --git a/core-lib/es6/src/main/java/def/js/PromiseLike.java b/core-lib/es6/src/main/java/def/js/PromiseLike.java new file mode 100644 index 00000000..04cee2d2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/PromiseLike.java @@ -0,0 +1,64 @@ +package def.js; +@jsweet.lang.Interface +public abstract class PromiseLike extends def.js.Object { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledFunctionOnrejectedFunction(java.util.function.Function onfulfilled, java.util.function.Function onrejected); + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledFunction(java.util.function.Function onfulfilled, java.util.function.Consumer onrejected); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledFunction(java.util.function.Function onfulfilled); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + native public PromiseLike then(); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledPromiseLikeFunctionOnrejectedFunction(java.util.function.Function> onfulfilled, java.util.function.Function onrejected); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledFunctionOnrejectedPromiseLikeFunction(java.util.function.Function onfulfilled, java.util.function.Function> onrejected); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledPromiseLikeFunctionOnrejectedPromiseLikeFunction(java.util.function.Function> onfulfilled, java.util.function.Function> onrejected); + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledPromiseLikeFunction(java.util.function.Function> onfulfilled, java.util.function.Consumer onrejected); + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + @jsweet.lang.Name("then") + native public PromiseLike thenOnfulfilledPromiseLikeFunction(java.util.function.Function> onfulfilled); +} + diff --git a/core-lib/es6/src/main/java/def/js/PropertyDescriptor.java b/core-lib/es6/src/main/java/def/js/PropertyDescriptor.java new file mode 100644 index 00000000..d936536c --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/PropertyDescriptor.java @@ -0,0 +1,15 @@ +package def.js; +@jsweet.lang.Interface +public abstract class PropertyDescriptor extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean configurable; + @jsweet.lang.Optional + public java.lang.Boolean enumerable; + @jsweet.lang.Optional + public java.lang.Object value; + @jsweet.lang.Optional + public java.lang.Boolean writable; + native public java.lang.Object get(); + native public void set(java.lang.Object v); +} + diff --git a/core-lib/es6/src/main/java/def/js/PropertyDescriptorMap.java b/core-lib/es6/src/main/java/def/js/PropertyDescriptorMap.java new file mode 100644 index 00000000..85add959 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/PropertyDescriptorMap.java @@ -0,0 +1,6 @@ +package def.js; +@jsweet.lang.Interface +public abstract class PropertyDescriptorMap extends def.js.Object { + native public PropertyDescriptor $get(java.lang.String s); +} + diff --git a/core-lib/es6/src/main/java/def/js/ProxyConstructor.java b/core-lib/es6/src/main/java/def/js/ProxyConstructor.java new file mode 100644 index 00000000..99686d15 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ProxyConstructor.java @@ -0,0 +1,14 @@ +package def.js; +@jsweet.lang.Interface +public abstract class ProxyConstructor extends def.js.Object { + native public Revocable revocable(T target, ProxyHandler handler); + public ProxyConstructor(T target, ProxyHandler handler){} + /** This is an automatically generated object type (see the source definition). */ + @jsweet.lang.ObjectType + public static class Revocable extends def.js.Object { + public T proxy; + public java.lang.Runnable revoke; + } + protected ProxyConstructor(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/ProxyHandler.java b/core-lib/es6/src/main/java/def/js/ProxyHandler.java new file mode 100644 index 00000000..ff1be2dc --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ProxyHandler.java @@ -0,0 +1,29 @@ +package def.js; +import jsweet.util.union.Union3; +@jsweet.lang.Interface +public abstract class ProxyHandler extends def.js.Object { + native public java.lang.Boolean setPrototypeOf(T target, java.lang.Object v); + native public java.lang.Boolean has(T target, java.lang.String p); + native public java.lang.Object get(T target, java.lang.String p, java.lang.Object receiver); + native public java.lang.Boolean set(T target, java.lang.String p, java.lang.Object value, java.lang.Object receiver); + native public java.lang.Boolean deleteProperty(T target, java.lang.String p); + native public Union3[] enumerate(T target); + native public Union3[] ownKeys(T target); + native public java.lang.Object apply(T target, java.lang.Object thisArg, java.lang.Object argArray); + native public java.lang.Object construct(T target, java.lang.Object thisArg, java.lang.Object argArray); + native public java.lang.Object apply(T target, java.lang.Object thisArg); + native public java.lang.Object construct(T target, java.lang.Object thisArg); + native public PropertyDescriptor getOwnPropertyDescriptor(T target, double p); + native public PropertyDescriptor getOwnPropertyDescriptor(T target, String p); + native public java.lang.Boolean has(T target, String p); + native public java.lang.Boolean has(T target, double p); + native public java.lang.Object get(T target, String p, java.lang.Object receiver); + native public java.lang.Object get(T target, double p, java.lang.Object receiver); + native public java.lang.Boolean set(T target, double p, java.lang.Object value, java.lang.Object receiver); + native public java.lang.Boolean set(T target, String p, java.lang.Object value, java.lang.Object receiver); + native public java.lang.Boolean deleteProperty(T target, String p); + native public java.lang.Boolean deleteProperty(T target, double p); + native public java.lang.Boolean defineProperty(T target, double p, PropertyDescriptor attributes); + native public java.lang.Boolean defineProperty(T target, String p, PropertyDescriptor attributes); +} + diff --git a/core-lib/es6/src/main/java/def/js/RangeError.java b/core-lib/es6/src/main/java/def/js/RangeError.java new file mode 100644 index 00000000..ad48c099 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/RangeError.java @@ -0,0 +1,9 @@ +package def.js; +public class RangeError extends Error { + public RangeError(java.lang.String message){} + native public static RangeError applyStatic(java.lang.String message); + public static RangeError prototype; + public RangeError(){} + native public static RangeError applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/ReferenceError.java b/core-lib/es6/src/main/java/def/js/ReferenceError.java new file mode 100644 index 00000000..58b0c912 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/ReferenceError.java @@ -0,0 +1,9 @@ +package def.js; +public class ReferenceError extends Error { + public ReferenceError(java.lang.String message){} + native public static ReferenceError applyStatic(java.lang.String message); + public static ReferenceError prototype; + public ReferenceError(){} + native public static ReferenceError applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/Reflect.java b/core-lib/es6/src/main/java/def/js/Reflect.java new file mode 100644 index 00000000..c8d84c24 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Reflect.java @@ -0,0 +1,40 @@ +package def.js; +import jsweet.util.union.Union3; +/** Utility class. */ +public class Reflect extends def.js.Object { + private Reflect(){} + native public static java.lang.Object applyStatic(Function target, java.lang.Object thisArgument, ArrayLike argumentsList); + native public static java.lang.Object construct(Function target, ArrayLike argumentsList); + native public static java.lang.Boolean defineProperty(java.lang.Object target, java.lang.String propertyKey, PropertyDescriptor attributes); + native public static java.lang.Boolean deleteProperty(java.lang.Object target, java.lang.String propertyKey); + native public static IterableIterator enumerate(java.lang.Object target); + native public static java.lang.Object get(java.lang.Object target, java.lang.String propertyKey, java.lang.Object receiver); + native public static PropertyDescriptor getOwnPropertyDescriptor(java.lang.Object target, java.lang.String propertyKey); + native public static java.lang.Object getPrototypeOf(java.lang.Object target); + native public static java.lang.Boolean has(java.lang.Object target, java.lang.String propertyKey); + native public static java.lang.Boolean has(java.lang.Object target, String propertyKey); + native public static java.lang.Boolean isExtensible(java.lang.Object target); + native public static Array> ownKeys(java.lang.Object target); + native public static java.lang.Boolean preventExtensions(java.lang.Object target); + native public static java.lang.Boolean set(java.lang.Object target, java.lang.String propertyKey, java.lang.Object value, java.lang.Object receiver); + native public static java.lang.Boolean setPrototypeOf(java.lang.Object target, java.lang.Object proto); + native public static java.lang.Object get(java.lang.Object target, java.lang.String propertyKey); + native public static java.lang.Boolean set(java.lang.Object target, java.lang.String propertyKey, java.lang.Object value); + native public static java.lang.Boolean defineProperty(java.lang.Object target, double propertyKey, PropertyDescriptor attributes); + native public static java.lang.Boolean defineProperty(java.lang.Object target, String propertyKey, PropertyDescriptor attributes); + native public static java.lang.Boolean deleteProperty(java.lang.Object target, double propertyKey); + native public static java.lang.Boolean deleteProperty(java.lang.Object target, String propertyKey); + native public static java.lang.Object get(java.lang.Object target, String propertyKey, java.lang.Object receiver); + native public static java.lang.Object get(java.lang.Object target, double propertyKey, java.lang.Object receiver); + native public static PropertyDescriptor getOwnPropertyDescriptor(java.lang.Object target, double propertyKey); + native public static PropertyDescriptor getOwnPropertyDescriptor(java.lang.Object target, String propertyKey); + native public static java.lang.Boolean set(java.lang.Object target, double propertyKey, java.lang.Object value, java.lang.Object receiver); + native public static java.lang.Boolean set(java.lang.Object target, String propertyKey, java.lang.Object value, java.lang.Object receiver); + native public static java.lang.Object get(java.lang.Object target, String propertyKey); + native public static java.lang.Object get(java.lang.Object target, double propertyKey); + native public static java.lang.Boolean set(java.lang.Object target, double propertyKey, java.lang.Object value); + native public static java.lang.Boolean set(java.lang.Object target, String propertyKey, java.lang.Object value); + native public static java.lang.Object applyStatic(Function target, java.lang.Object thisArgument, java.lang.Object[] argumentsList); + native public static java.lang.Object construct(Function target, java.lang.Object[] argumentsList); +} + diff --git a/core-lib/es6/src/main/java/def/js/RegExp.java b/core-lib/es6/src/main/java/def/js/RegExp.java new file mode 100644 index 00000000..b12b744d --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/RegExp.java @@ -0,0 +1,103 @@ +package def.js; +public class RegExp extends def.js.Object { + /** + * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. + * @param string The String object or string literal on which to perform the search. + */ + native public RegExpExecArray exec(java.lang.String string); + /** + * Returns a Boolean value that indicates whether or not a pattern exists in a searched string. + * @param string String on which to perform the search. + */ + native public java.lang.Boolean test(java.lang.String string); + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ + public java.lang.String source; + /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ + public java.lang.Boolean global; + /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */ + public java.lang.Boolean ignoreCase; + /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */ + public java.lang.Boolean multiline; + public double lastIndex; + native public RegExp compile(); + public RegExp(java.lang.String pattern, java.lang.String flags){} + native public static RegExp applyStatic(java.lang.String pattern, java.lang.String flags); + public static RegExp prototype; + public static java.lang.String $1; + public static java.lang.String $2; + public static java.lang.String $3; + public static java.lang.String $4; + public static java.lang.String $5; + public static java.lang.String $6; + public static java.lang.String $7; + public static java.lang.String $8; + public static java.lang.String $9; + public static java.lang.String lastMatch; + /** + * Matches a string with a regular expression, and returns an array containing the results of + * that search. + * @param string A string to search within. + */ + native public java.lang.String[] match(java.lang.String string); + /** + * Replaces text in a string, using a regular expression. + * @param searchValue A String object or string literal that represents the regular expression + * @param replaceValue A String object or string literal containing the text to replace for every + * successful match of rgExp in stringObj. + */ + native public java.lang.String replace(java.lang.String string, java.lang.String replaceValue); + native public double search(java.lang.String string); + /** + * Returns an Array object into which substrings of the result of converting string to a String + * have been stored. The substrings are determined by searching from left to right for matches + * of the this value regular expression; these occurrences are not part of any substring in the + * returned array, but serve to divide up the String value. + * + * If the regular expression that contains capturing parentheses, then each time separator is + * matched the results (including any undefined results) of the capturing parentheses are spliced. + * @param string string value to split + * @param limit if not undefined, the output array is truncated so that it contains no more + * than limit elements. + */ + native public java.lang.String[] split(java.lang.String string, double limit); + /** + * Returns a string indicating the flags of the regular expression in question. This field is read-only. + * The characters in this string are sequenced and concatenated in the following order: + * + * - "g" for global + * - "i" for ignoreCase + * - "m" for multiline + * - "u" for unicode + * - "y" for sticky + * + * If no flags are set, the value is the empty string. + */ + public java.lang.String flags; + /** + * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular + * expression. Default is false. Read-only. + */ + public java.lang.Boolean sticky; + /** + * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular + * expression. Default is false. Read-only. + */ + public java.lang.Boolean unicode; + public RegExp(java.lang.String pattern){} + native public static RegExp applyStatic(java.lang.String pattern); + /** + * Returns an Array object into which substrings of the result of converting string to a String + * have been stored. The substrings are determined by searching from left to right for matches + * of the this value regular expression; these occurrences are not part of any substring in the + * returned array, but serve to divide up the String value. + * + * If the regular expression that contains capturing parentheses, then each time separator is + * matched the results (including any undefined results) of the capturing parentheses are spliced. + * @param string string value to split + * @param limit if not undefined, the output array is truncated so that it contains no more + * than limit elements. + */ + native public java.lang.String[] split(java.lang.String string); + protected RegExp(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/RegExpExecArray.java b/core-lib/es6/src/main/java/def/js/RegExpExecArray.java new file mode 100644 index 00000000..96e837c6 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/RegExpExecArray.java @@ -0,0 +1,7 @@ +package def.js; +@jsweet.lang.Interface +public abstract class RegExpExecArray extends Array { + public double index; + public java.lang.String input; +} + diff --git a/core-lib/es6/src/main/java/def/js/RegExpMatchArray.java b/core-lib/es6/src/main/java/def/js/RegExpMatchArray.java new file mode 100644 index 00000000..b95dd646 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/RegExpMatchArray.java @@ -0,0 +1,9 @@ +package def.js; +@jsweet.lang.Interface +public abstract class RegExpMatchArray extends Array { + @jsweet.lang.Optional + public double index; + @jsweet.lang.Optional + public java.lang.String input; +} + diff --git a/core-lib/es6/src/main/java/def/js/Set.java b/core-lib/es6/src/main/java/def/js/Set.java new file mode 100644 index 00000000..4c0a238d --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Set.java @@ -0,0 +1,18 @@ +package def.js; +public class Set extends def.js.Object { + native public Set add(T value); + native public void clear(); + native public java.lang.Boolean delete(T value); + native public IterableIterator> entries(); + native public void forEach(jsweet.util.function.TriConsumer> callbackfn, java.lang.Object thisArg); + native public java.lang.Boolean has(T value); + native public IterableIterator keys(); + public double size; + native public IterableIterator values(); + native public java.lang.String $get(Symbol toStringTag); + public Set(){} + public Set(Iterable iterable){} + public static Set prototype; + native public void forEach(jsweet.util.function.TriConsumer> callbackfn); +} + diff --git a/core-lib/es6/src/main/java/def/js/String.java b/core-lib/es6/src/main/java/def/js/String.java new file mode 100644 index 00000000..4c9b1060 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/String.java @@ -0,0 +1,317 @@ +package def.js; +@jsweet.lang.SyntacticIterable +public class String extends Iterable { + /** Returns a string representation of a string. */ + native public java.lang.String toString(); + /** + * Returns the character at the specified index. + * @param pos The zero-based index of the desired character. + */ + native public java.lang.String charAt(double pos); + /** + * Returns the Unicode value of the character at the specified location. + * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. + */ + native public double charCodeAt(double index); + /** + * Returns a string that contains the concatenation of two or more strings. + * @param strings The strings to append to the end of the string. + */ + native public java.lang.String concat(java.lang.String... strings); + /** + * Returns the position of the first occurrence of a substring. + * @param searchString The substring to search for in the string + * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. + */ + native public double indexOf(java.lang.String searchString, double position); + /** + * Returns the last occurrence of a substring in the string. + * @param searchString The substring to search for. + * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. + */ + native public double lastIndexOf(java.lang.String searchString, double position); + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + */ + native public double localeCompare(java.lang.String that); + /** + * Matches a string with a regular expression, and returns an array containing the results of that search. + * @param regexp A variable name or string literal containing the regular expression pattern and flags. + */ + native public RegExpMatchArray match(java.lang.String regexp); + /** + * Matches a string with a regular expression, and returns an array containing the results of that search. + * @param regexp A regular expression object that contains the regular expression pattern and applicable flags. + */ + native public RegExpMatchArray match(RegExp regexp); + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A String object or string literal that represents the regular expression + * @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj. + */ + native public java.lang.String replace(java.lang.String searchValue, java.lang.String replaceValue); + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A String object or string literal that represents the regular expression + * @param replaceValue A function that returns the replacement text. + */ + native public java.lang.String replace(java.lang.String searchValue, java.util.function.BiFunction replaceValue); + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags + * @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj. + */ + native public java.lang.String replace(RegExp searchValue, java.lang.String replaceValue); + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags + * @param replaceValue A function that returns the replacement text. + */ + native public java.lang.String replace(RegExp searchValue, java.util.function.BiFunction replaceValue); + /** + * Finds the first substring match in a regular expression search. + * @param regexp The regular expression pattern and applicable flags. + */ + native public double search(java.lang.String regexp); + /** + * Finds the first substring match in a regular expression search. + * @param regexp The regular expression pattern and applicable flags. + */ + native public double search(RegExp regexp); + /** + * Returns a section of a string. + * @param start The index to the beginning of the specified portion of stringObj. + * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. + * If this value is not specified, the substring continues to the end of stringObj. + */ + native public java.lang.String slice(double start, double end); + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + native public java.lang.String[] split(java.lang.String separator, double limit); + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + native public java.lang.String[] split(RegExp separator, double limit); + /** + * Returns the substring at the specified location within a String object. + * @param start The zero-based index number indicating the beginning of the substring. + * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. + * If end is omitted, the characters from start through the end of the original string are returned. + */ + native public java.lang.String substring(double start, double end); + /** Converts all the alphabetic characters in a string to lowercase. */ + native public java.lang.String toLowerCase(); + /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ + native public java.lang.String toLocaleLowerCase(); + /** Converts all the alphabetic characters in a string to uppercase. */ + native public java.lang.String toUpperCase(); + /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ + native public java.lang.String toLocaleUpperCase(); + /** Removes the leading and trailing white space and line terminator characters from a string. */ + native public java.lang.String trim(); + /** Returns the length of a String object. */ + public double length; + /** + * Gets a substring beginning at the specified location and having the specified length. + * @param from The starting position of the desired substring. The index of the first character in the string is zero. + * @param length The number of characters to include in the returned substring. + */ + native public java.lang.String substr(double from, double length); + /** Returns the primitive value of the specified object. */ + native public java.lang.String valueOf(); + native public java.lang.String $get(double index); + public String(java.lang.Object value){} + native public static java.lang.String applyStatic(java.lang.Object value); + public static java.lang.String prototype; + native public static java.lang.String fromCharCode(double... codes); + /** + * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point + * value of the UTF-16 encoded code point starting at the string element at position pos in + * the String resulting from converting this object to a String. + * If there is no element at that position, the result is undefined. + * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos. + */ + native public double codePointAt(double pos); + /** + * Returns true if searchString appears as a substring of the result of converting this + * object to a String, at one or more positions that are + * greater than or equal to position; otherwise, returns false. + * @param searchString search string + * @param position If position is undefined, 0 is assumed, so as to search all of the String. + */ + native public java.lang.Boolean contains(java.lang.String searchString, double position); + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * endPosition – length(this). Otherwise returns false. + */ + native public java.lang.Boolean endsWith(java.lang.String searchString, double endPosition); + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + native public java.lang.String normalize(java.lang.String form); + /** + * Returns a String value that is made from count copies appended together. If count is 0, + * T is the empty String is returned. + * @param count number of copies to append + */ + native public java.lang.String repeat(double count); + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * position. Otherwise returns false. + */ + native public java.lang.Boolean startsWith(java.lang.String searchString, double position); + /** + * Returns an HTML anchor element and sets the name attribute to the text value + * @param name + */ + native public java.lang.String anchor(java.lang.String name); + /** Returns a HTML element */ + native public java.lang.String big(); + /** Returns a HTML element */ + native public java.lang.String blink(); + /** Returns a HTML element */ + native public java.lang.String bold(); + /** Returns a HTML element */ + native public java.lang.String fixed(); + /** Returns a HTML element and sets the color attribute value */ + native public java.lang.String fontcolor(java.lang.String color); + /** Returns a HTML element and sets the size attribute value */ + native public java.lang.String fontsize(double size); + /** Returns a HTML element and sets the size attribute value */ + native public java.lang.String fontsize(java.lang.String size); + /** Returns an HTML element */ + native public java.lang.String italics(); + /** Returns an HTML element and sets the href attribute value */ + native public java.lang.String link(java.lang.String url); + /** Returns a HTML element */ + native public java.lang.String small(); + /** Returns a HTML element */ + native public java.lang.String strike(); + /** Returns a HTML element */ + native public java.lang.String sub(); + /** Returns a HTML element */ + native public java.lang.String sup(); + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + native public double localeCompare(java.lang.String that, java.lang.String[] locales, def.dom.intl.CollatorOptions options); + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + native public double localeCompare(java.lang.String that, java.lang.String locale, def.dom.intl.CollatorOptions options); + /** + * Returns the position of the first occurrence of a substring. + * @param searchString The substring to search for in the string + * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. + */ + native public double indexOf(java.lang.String searchString); + /** + * Returns the last occurrence of a substring in the string. + * @param searchString The substring to search for. + * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. + */ + native public double lastIndexOf(java.lang.String searchString); + /** + * Returns a section of a string. + * @param start The index to the beginning of the specified portion of stringObj. + * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. + * If this value is not specified, the substring continues to the end of stringObj. + */ + native public java.lang.String slice(double start); + /** + * Returns a section of a string. + * @param start The index to the beginning of the specified portion of stringObj. + * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. + * If this value is not specified, the substring continues to the end of stringObj. + */ + native public java.lang.String slice(); + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + native public java.lang.String[] split(java.lang.String separator); + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + native public java.lang.String[] split(RegExp separator); + /** + * Returns the substring at the specified location within a String object. + * @param start The zero-based index number indicating the beginning of the substring. + * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. + * If end is omitted, the characters from start through the end of the original string are returned. + */ + native public java.lang.String substring(double start); + /** + * Gets a substring beginning at the specified location and having the specified length. + * @param from The starting position of the desired substring. The index of the first character in the string is zero. + * @param length The number of characters to include in the returned substring. + */ + native public java.lang.String substr(double from); + public String(){} + native public static java.lang.String applyStatic(); + /** + * Returns true if searchString appears as a substring of the result of converting this + * object to a String, at one or more positions that are + * greater than or equal to position; otherwise, returns false. + * @param searchString search string + * @param position If position is undefined, 0 is assumed, so as to search all of the String. + */ + native public java.lang.Boolean contains(java.lang.String searchString); + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * endPosition – length(this). Otherwise returns false. + */ + native public java.lang.Boolean endsWith(java.lang.String searchString); + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + native public java.lang.String normalize(); + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * position. Otherwise returns false. + */ + native public java.lang.Boolean startsWith(java.lang.String searchString); + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + native public double localeCompare(java.lang.String that, java.lang.String[] locales); + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + native public double localeCompare(java.lang.String that, java.lang.String locale); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); +} + diff --git a/core-lib/es6/src/main/java/def/js/StringTypes.java b/core-lib/es6/src/main/java/def/js/StringTypes.java new file mode 100644 index 00000000..6030a399 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/StringTypes.java @@ -0,0 +1,5061 @@ +package def.js; +public interface StringTypes { + /** + * Generated to type the string "cached". + * @exclude + */ + @jsweet.lang.StringType + public interface cached { + } + /** + * Generated to type the string "cached". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.cached cached=null; + /** + * Generated to type the string "checking". + * @exclude + */ + @jsweet.lang.StringType + public interface checking { + } + /** + * Generated to type the string "checking". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.checking checking=null; + /** + * Generated to type the string "downloading". + * @exclude + */ + @jsweet.lang.StringType + public interface downloading { + } + /** + * Generated to type the string "downloading". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.downloading downloading=null; + /** + * Generated to type the string "error". + * @exclude + */ + @jsweet.lang.StringType + public interface error { + } + /** + * Generated to type the string "error". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.error error=null; + /** + * Generated to type the string "noupdate". + * @exclude + */ + @jsweet.lang.StringType + public interface noupdate { + } + /** + * Generated to type the string "noupdate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.noupdate noupdate=null; + /** + * Generated to type the string "obsolete". + * @exclude + */ + @jsweet.lang.StringType + public interface obsolete { + } + /** + * Generated to type the string "obsolete". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.obsolete obsolete=null; + /** + * Generated to type the string "progress". + * @exclude + */ + @jsweet.lang.StringType + public interface progress { + } + /** + * Generated to type the string "progress". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.progress progress=null; + /** + * Generated to type the string "updateready". + * @exclude + */ + @jsweet.lang.StringType + public interface updateready { + } + /** + * Generated to type the string "updateready". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.updateready updateready=null; + /** + * Generated to type the string "ended". + * @exclude + */ + @jsweet.lang.StringType + public interface ended { + } + /** + * Generated to type the string "ended". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ended ended=null; + /** + * Generated to type the string "addtrack". + * @exclude + */ + @jsweet.lang.StringType + public interface addtrack { + } + /** + * Generated to type the string "addtrack". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.addtrack addtrack=null; + /** + * Generated to type the string "change". + * @exclude + */ + @jsweet.lang.StringType + public interface change { + } + /** + * Generated to type the string "change". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.change change=null; + /** + * Generated to type the string "removetrack". + * @exclude + */ + @jsweet.lang.StringType + public interface removetrack { + } + /** + * Generated to type the string "removetrack". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.removetrack removetrack=null; + /** + * Generated to type the string "a". + * @exclude + */ + @jsweet.lang.StringType + public interface a { + } + /** + * Generated to type the string "a". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.a a=null; + /** + * Generated to type the string "abbr". + * @exclude + */ + @jsweet.lang.StringType + public interface abbr { + } + /** + * Generated to type the string "abbr". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.abbr abbr=null; + /** + * Generated to type the string "acronym". + * @exclude + */ + @jsweet.lang.StringType + public interface acronym { + } + /** + * Generated to type the string "acronym". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.acronym acronym=null; + /** + * Generated to type the string "address". + * @exclude + */ + @jsweet.lang.StringType + public interface address { + } + /** + * Generated to type the string "address". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.address address=null; + /** + * Generated to type the string "applet". + * @exclude + */ + @jsweet.lang.StringType + public interface applet { + } + /** + * Generated to type the string "applet". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.applet applet=null; + /** + * Generated to type the string "area". + * @exclude + */ + @jsweet.lang.StringType + public interface area { + } + /** + * Generated to type the string "area". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.area area=null; + /** + * Generated to type the string "audio". + * @exclude + */ + @jsweet.lang.StringType + public interface audio { + } + /** + * Generated to type the string "audio". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.audio audio=null; + /** + * Generated to type the string "b". + * @exclude + */ + @jsweet.lang.StringType + public interface b { + } + /** + * Generated to type the string "b". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.b b=null; + /** + * Generated to type the string "base". + * @exclude + */ + @jsweet.lang.StringType + public interface base { + } + /** + * Generated to type the string "base". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.base base=null; + /** + * Generated to type the string "basefont". + * @exclude + */ + @jsweet.lang.StringType + public interface basefont { + } + /** + * Generated to type the string "basefont". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.basefont basefont=null; + /** + * Generated to type the string "bdo". + * @exclude + */ + @jsweet.lang.StringType + public interface bdo { + } + /** + * Generated to type the string "bdo". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.bdo bdo=null; + /** + * Generated to type the string "big". + * @exclude + */ + @jsweet.lang.StringType + public interface big { + } + /** + * Generated to type the string "big". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.big big=null; + /** + * Generated to type the string "blockquote". + * @exclude + */ + @jsweet.lang.StringType + public interface blockquote { + } + /** + * Generated to type the string "blockquote". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.blockquote blockquote=null; + /** + * Generated to type the string "body". + * @exclude + */ + @jsweet.lang.StringType + public interface body { + } + /** + * Generated to type the string "body". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.body body=null; + /** + * Generated to type the string "br". + * @exclude + */ + @jsweet.lang.StringType + public interface br { + } + /** + * Generated to type the string "br". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.br br=null; + /** + * Generated to type the string "button". + * @exclude + */ + @jsweet.lang.StringType + public interface button { + } + /** + * Generated to type the string "button". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.button button=null; + /** + * Generated to type the string "canvas". + * @exclude + */ + @jsweet.lang.StringType + public interface canvas { + } + /** + * Generated to type the string "canvas". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.canvas canvas=null; + /** + * Generated to type the string "caption". + * @exclude + */ + @jsweet.lang.StringType + public interface caption { + } + /** + * Generated to type the string "caption". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.caption caption=null; + /** + * Generated to type the string "center". + * @exclude + */ + @jsweet.lang.StringType + public interface center { + } + /** + * Generated to type the string "center". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.center center=null; + /** + * Generated to type the string "cite". + * @exclude + */ + @jsweet.lang.StringType + public interface cite { + } + /** + * Generated to type the string "cite". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.cite cite=null; + /** + * Generated to type the string "code". + * @exclude + */ + @jsweet.lang.StringType + public interface code { + } + /** + * Generated to type the string "code". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.code code=null; + /** + * Generated to type the string "col". + * @exclude + */ + @jsweet.lang.StringType + public interface col { + } + /** + * Generated to type the string "col". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.col col=null; + /** + * Generated to type the string "colgroup". + * @exclude + */ + @jsweet.lang.StringType + public interface colgroup { + } + /** + * Generated to type the string "colgroup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.colgroup colgroup=null; + /** + * Generated to type the string "datalist". + * @exclude + */ + @jsweet.lang.StringType + public interface datalist { + } + /** + * Generated to type the string "datalist". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.datalist datalist=null; + /** + * Generated to type the string "dd". + * @exclude + */ + @jsweet.lang.StringType + public interface dd { + } + /** + * Generated to type the string "dd". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dd dd=null; + /** + * Generated to type the string "del". + * @exclude + */ + @jsweet.lang.StringType + public interface del { + } + /** + * Generated to type the string "del". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.del del=null; + /** + * Generated to type the string "dfn". + * @exclude + */ + @jsweet.lang.StringType + public interface dfn { + } + /** + * Generated to type the string "dfn". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dfn dfn=null; + /** + * Generated to type the string "dir". + * @exclude + */ + @jsweet.lang.StringType + public interface dir { + } + /** + * Generated to type the string "dir". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dir dir=null; + /** + * Generated to type the string "div". + * @exclude + */ + @jsweet.lang.StringType + public interface div { + } + /** + * Generated to type the string "div". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.div div=null; + /** + * Generated to type the string "dl". + * @exclude + */ + @jsweet.lang.StringType + public interface dl { + } + /** + * Generated to type the string "dl". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dl dl=null; + /** + * Generated to type the string "dt". + * @exclude + */ + @jsweet.lang.StringType + public interface dt { + } + /** + * Generated to type the string "dt". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dt dt=null; + /** + * Generated to type the string "em". + * @exclude + */ + @jsweet.lang.StringType + public interface em { + } + /** + * Generated to type the string "em". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.em em=null; + /** + * Generated to type the string "embed". + * @exclude + */ + @jsweet.lang.StringType + public interface embed { + } + /** + * Generated to type the string "embed". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.embed embed=null; + /** + * Generated to type the string "fieldset". + * @exclude + */ + @jsweet.lang.StringType + public interface fieldset { + } + /** + * Generated to type the string "fieldset". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fieldset fieldset=null; + /** + * Generated to type the string "font". + * @exclude + */ + @jsweet.lang.StringType + public interface font { + } + /** + * Generated to type the string "font". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.font font=null; + /** + * Generated to type the string "form". + * @exclude + */ + @jsweet.lang.StringType + public interface form { + } + /** + * Generated to type the string "form". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.form form=null; + /** + * Generated to type the string "frame". + * @exclude + */ + @jsweet.lang.StringType + public interface frame { + } + /** + * Generated to type the string "frame". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.frame frame=null; + /** + * Generated to type the string "frameset". + * @exclude + */ + @jsweet.lang.StringType + public interface frameset { + } + /** + * Generated to type the string "frameset". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.frameset frameset=null; + /** + * Generated to type the string "h1". + * @exclude + */ + @jsweet.lang.StringType + public interface h1 { + } + /** + * Generated to type the string "h1". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.h1 h1=null; + /** + * Generated to type the string "h2". + * @exclude + */ + @jsweet.lang.StringType + public interface h2 { + } + /** + * Generated to type the string "h2". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.h2 h2=null; + /** + * Generated to type the string "h3". + * @exclude + */ + @jsweet.lang.StringType + public interface h3 { + } + /** + * Generated to type the string "h3". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.h3 h3=null; + /** + * Generated to type the string "h4". + * @exclude + */ + @jsweet.lang.StringType + public interface h4 { + } + /** + * Generated to type the string "h4". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.h4 h4=null; + /** + * Generated to type the string "h5". + * @exclude + */ + @jsweet.lang.StringType + public interface h5 { + } + /** + * Generated to type the string "h5". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.h5 h5=null; + /** + * Generated to type the string "h6". + * @exclude + */ + @jsweet.lang.StringType + public interface h6 { + } + /** + * Generated to type the string "h6". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.h6 h6=null; + /** + * Generated to type the string "head". + * @exclude + */ + @jsweet.lang.StringType + public interface head { + } + /** + * Generated to type the string "head". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.head head=null; + /** + * Generated to type the string "hr". + * @exclude + */ + @jsweet.lang.StringType + public interface hr { + } + /** + * Generated to type the string "hr". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.hr hr=null; + /** + * Generated to type the string "html". + * @exclude + */ + @jsweet.lang.StringType + public interface html { + } + /** + * Generated to type the string "html". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.html html=null; + /** + * Generated to type the string "i". + * @exclude + */ + @jsweet.lang.StringType + public interface i { + } + /** + * Generated to type the string "i". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.i i=null; + /** + * Generated to type the string "iframe". + * @exclude + */ + @jsweet.lang.StringType + public interface iframe { + } + /** + * Generated to type the string "iframe". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.iframe iframe=null; + /** + * Generated to type the string "img". + * @exclude + */ + @jsweet.lang.StringType + public interface img { + } + /** + * Generated to type the string "img". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.img img=null; + /** + * Generated to type the string "input". + * @exclude + */ + @jsweet.lang.StringType + public interface input { + } + /** + * Generated to type the string "input". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.input input=null; + /** + * Generated to type the string "ins". + * @exclude + */ + @jsweet.lang.StringType + public interface ins { + } + /** + * Generated to type the string "ins". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ins ins=null; + /** + * Generated to type the string "isindex". + * @exclude + */ + @jsweet.lang.StringType + public interface isindex { + } + /** + * Generated to type the string "isindex". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.isindex isindex=null; + /** + * Generated to type the string "kbd". + * @exclude + */ + @jsweet.lang.StringType + public interface kbd { + } + /** + * Generated to type the string "kbd". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.kbd kbd=null; + /** + * Generated to type the string "keygen". + * @exclude + */ + @jsweet.lang.StringType + public interface keygen { + } + /** + * Generated to type the string "keygen". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.keygen keygen=null; + /** + * Generated to type the string "label". + * @exclude + */ + @jsweet.lang.StringType + public interface label { + } + /** + * Generated to type the string "label". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.label label=null; + /** + * Generated to type the string "legend". + * @exclude + */ + @jsweet.lang.StringType + public interface legend { + } + /** + * Generated to type the string "legend". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.legend legend=null; + /** + * Generated to type the string "li". + * @exclude + */ + @jsweet.lang.StringType + public interface li { + } + /** + * Generated to type the string "li". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.li li=null; + /** + * Generated to type the string "link". + * @exclude + */ + @jsweet.lang.StringType + public interface link { + } + /** + * Generated to type the string "link". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.link link=null; + /** + * Generated to type the string "listing". + * @exclude + */ + @jsweet.lang.StringType + public interface listing { + } + /** + * Generated to type the string "listing". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.listing listing=null; + /** + * Generated to type the string "map". + * @exclude + */ + @jsweet.lang.StringType + public interface map { + } + /** + * Generated to type the string "map". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.map map=null; + /** + * Generated to type the string "marquee". + * @exclude + */ + @jsweet.lang.StringType + public interface marquee { + } + /** + * Generated to type the string "marquee". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.marquee marquee=null; + /** + * Generated to type the string "menu". + * @exclude + */ + @jsweet.lang.StringType + public interface menu { + } + /** + * Generated to type the string "menu". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.menu menu=null; + /** + * Generated to type the string "meta". + * @exclude + */ + @jsweet.lang.StringType + public interface meta { + } + /** + * Generated to type the string "meta". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.meta meta=null; + /** + * Generated to type the string "nextid". + * @exclude + */ + @jsweet.lang.StringType + public interface nextid { + } + /** + * Generated to type the string "nextid". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.nextid nextid=null; + /** + * Generated to type the string "nobr". + * @exclude + */ + @jsweet.lang.StringType + public interface nobr { + } + /** + * Generated to type the string "nobr". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.nobr nobr=null; + /** + * Generated to type the string "object". + * @exclude + */ + @jsweet.lang.StringType + public interface object { + } + /** + * Generated to type the string "object". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.object object=null; + /** + * Generated to type the string "ol". + * @exclude + */ + @jsweet.lang.StringType + public interface ol { + } + /** + * Generated to type the string "ol". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ol ol=null; + /** + * Generated to type the string "optgroup". + * @exclude + */ + @jsweet.lang.StringType + public interface optgroup { + } + /** + * Generated to type the string "optgroup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.optgroup optgroup=null; + /** + * Generated to type the string "option". + * @exclude + */ + @jsweet.lang.StringType + public interface option { + } + /** + * Generated to type the string "option". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.option option=null; + /** + * Generated to type the string "p". + * @exclude + */ + @jsweet.lang.StringType + public interface p { + } + /** + * Generated to type the string "p". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.p p=null; + /** + * Generated to type the string "param". + * @exclude + */ + @jsweet.lang.StringType + public interface param { + } + /** + * Generated to type the string "param". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.param param=null; + /** + * Generated to type the string "plaintext". + * @exclude + */ + @jsweet.lang.StringType + public interface plaintext { + } + /** + * Generated to type the string "plaintext". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.plaintext plaintext=null; + /** + * Generated to type the string "pre". + * @exclude + */ + @jsweet.lang.StringType + public interface pre { + } + /** + * Generated to type the string "pre". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pre pre=null; + /** + * Generated to type the string "q". + * @exclude + */ + @jsweet.lang.StringType + public interface q { + } + /** + * Generated to type the string "q". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.q q=null; + /** + * Generated to type the string "rt". + * @exclude + */ + @jsweet.lang.StringType + public interface rt { + } + /** + * Generated to type the string "rt". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.rt rt=null; + /** + * Generated to type the string "ruby". + * @exclude + */ + @jsweet.lang.StringType + public interface ruby { + } + /** + * Generated to type the string "ruby". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ruby ruby=null; + /** + * Generated to type the string "s". + * @exclude + */ + @jsweet.lang.StringType + public interface s { + } + /** + * Generated to type the string "s". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.s s=null; + /** + * Generated to type the string "samp". + * @exclude + */ + @jsweet.lang.StringType + public interface samp { + } + /** + * Generated to type the string "samp". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.samp samp=null; + /** + * Generated to type the string "script". + * @exclude + */ + @jsweet.lang.StringType + public interface script { + } + /** + * Generated to type the string "script". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.script script=null; + /** + * Generated to type the string "select". + * @exclude + */ + @jsweet.lang.StringType + public interface select { + } + /** + * Generated to type the string "select". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.select select=null; + /** + * Generated to type the string "small". + * @exclude + */ + @jsweet.lang.StringType + public interface small { + } + /** + * Generated to type the string "small". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.small small=null; + /** + * Generated to type the string "source". + * @exclude + */ + @jsweet.lang.StringType + public interface source { + } + /** + * Generated to type the string "source". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.source source=null; + /** + * Generated to type the string "span". + * @exclude + */ + @jsweet.lang.StringType + public interface span { + } + /** + * Generated to type the string "span". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.span span=null; + /** + * Generated to type the string "strike". + * @exclude + */ + @jsweet.lang.StringType + public interface strike { + } + /** + * Generated to type the string "strike". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.strike strike=null; + /** + * Generated to type the string "strong". + * @exclude + */ + @jsweet.lang.StringType + public interface strong { + } + /** + * Generated to type the string "strong". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.strong strong=null; + /** + * Generated to type the string "style". + * @exclude + */ + @jsweet.lang.StringType + public interface style { + } + /** + * Generated to type the string "style". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.style style=null; + /** + * Generated to type the string "sub". + * @exclude + */ + @jsweet.lang.StringType + public interface sub { + } + /** + * Generated to type the string "sub". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.sub sub=null; + /** + * Generated to type the string "sup". + * @exclude + */ + @jsweet.lang.StringType + public interface sup { + } + /** + * Generated to type the string "sup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.sup sup=null; + /** + * Generated to type the string "table". + * @exclude + */ + @jsweet.lang.StringType + public interface table { + } + /** + * Generated to type the string "table". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.table table=null; + /** + * Generated to type the string "tbody". + * @exclude + */ + @jsweet.lang.StringType + public interface tbody { + } + /** + * Generated to type the string "tbody". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.tbody tbody=null; + /** + * Generated to type the string "td". + * @exclude + */ + @jsweet.lang.StringType + public interface td { + } + /** + * Generated to type the string "td". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.td td=null; + /** + * Generated to type the string "textarea". + * @exclude + */ + @jsweet.lang.StringType + public interface textarea { + } + /** + * Generated to type the string "textarea". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.textarea textarea=null; + /** + * Generated to type the string "tfoot". + * @exclude + */ + @jsweet.lang.StringType + public interface tfoot { + } + /** + * Generated to type the string "tfoot". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.tfoot tfoot=null; + /** + * Generated to type the string "th". + * @exclude + */ + @jsweet.lang.StringType + public interface th { + } + /** + * Generated to type the string "th". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.th th=null; + /** + * Generated to type the string "thead". + * @exclude + */ + @jsweet.lang.StringType + public interface thead { + } + /** + * Generated to type the string "thead". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.thead thead=null; + /** + * Generated to type the string "title". + * @exclude + */ + @jsweet.lang.StringType + public interface title { + } + /** + * Generated to type the string "title". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.title title=null; + /** + * Generated to type the string "tr". + * @exclude + */ + @jsweet.lang.StringType + public interface tr { + } + /** + * Generated to type the string "tr". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.tr tr=null; + /** + * Generated to type the string "track". + * @exclude + */ + @jsweet.lang.StringType + public interface track { + } + /** + * Generated to type the string "track". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.track track=null; + /** + * Generated to type the string "tt". + * @exclude + */ + @jsweet.lang.StringType + public interface tt { + } + /** + * Generated to type the string "tt". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.tt tt=null; + /** + * Generated to type the string "u". + * @exclude + */ + @jsweet.lang.StringType + public interface u { + } + /** + * Generated to type the string "u". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.u u=null; + /** + * Generated to type the string "ul". + * @exclude + */ + @jsweet.lang.StringType + public interface ul { + } + /** + * Generated to type the string "ul". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ul ul=null; + /** + * Generated to type the string "var". + * @exclude + */ + @jsweet.lang.StringType + public interface var { + } + /** + * Generated to type the string "var". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.var var=null; + /** + * Generated to type the string "video". + * @exclude + */ + @jsweet.lang.StringType + public interface video { + } + /** + * Generated to type the string "video". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.video video=null; + /** + * Generated to type the string "x_ms_webview". + * @exclude + */ + @jsweet.lang.StringType + public interface x_ms_webview { + } + /** + * Generated to type the string "x_ms_webview". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.x_ms_webview x_ms_webview=null; + /** + * Generated to type the string "xmp". + * @exclude + */ + @jsweet.lang.StringType + public interface xmp { + } + /** + * Generated to type the string "xmp". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.xmp xmp=null; + /** + * Generated to type the string "article". + * @exclude + */ + @jsweet.lang.StringType + public interface article { + } + /** + * Generated to type the string "article". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.article article=null; + /** + * Generated to type the string "aside". + * @exclude + */ + @jsweet.lang.StringType + public interface aside { + } + /** + * Generated to type the string "aside". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.aside aside=null; + /** + * Generated to type the string "circle". + * @exclude + */ + @jsweet.lang.StringType + public interface circle { + } + /** + * Generated to type the string "circle". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.circle circle=null; + /** + * Generated to type the string "clippath". + * @exclude + */ + @jsweet.lang.StringType + public interface clippath { + } + /** + * Generated to type the string "clippath". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.clippath clippath=null; + /** + * Generated to type the string "defs". + * @exclude + */ + @jsweet.lang.StringType + public interface defs { + } + /** + * Generated to type the string "defs". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.defs defs=null; + /** + * Generated to type the string "desc". + * @exclude + */ + @jsweet.lang.StringType + public interface desc { + } + /** + * Generated to type the string "desc". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.desc desc=null; + /** + * Generated to type the string "ellipse". + * @exclude + */ + @jsweet.lang.StringType + public interface ellipse { + } + /** + * Generated to type the string "ellipse". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ellipse ellipse=null; + /** + * Generated to type the string "feblend". + * @exclude + */ + @jsweet.lang.StringType + public interface feblend { + } + /** + * Generated to type the string "feblend". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.feblend feblend=null; + /** + * Generated to type the string "fecolormatrix". + * @exclude + */ + @jsweet.lang.StringType + public interface fecolormatrix { + } + /** + * Generated to type the string "fecolormatrix". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fecolormatrix fecolormatrix=null; + /** + * Generated to type the string "fecomponenttransfer". + * @exclude + */ + @jsweet.lang.StringType + public interface fecomponenttransfer { + } + /** + * Generated to type the string "fecomponenttransfer". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fecomponenttransfer fecomponenttransfer=null; + /** + * Generated to type the string "fecomposite". + * @exclude + */ + @jsweet.lang.StringType + public interface fecomposite { + } + /** + * Generated to type the string "fecomposite". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fecomposite fecomposite=null; + /** + * Generated to type the string "feconvolvematrix". + * @exclude + */ + @jsweet.lang.StringType + public interface feconvolvematrix { + } + /** + * Generated to type the string "feconvolvematrix". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.feconvolvematrix feconvolvematrix=null; + /** + * Generated to type the string "fediffuselighting". + * @exclude + */ + @jsweet.lang.StringType + public interface fediffuselighting { + } + /** + * Generated to type the string "fediffuselighting". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fediffuselighting fediffuselighting=null; + /** + * Generated to type the string "fedisplacementmap". + * @exclude + */ + @jsweet.lang.StringType + public interface fedisplacementmap { + } + /** + * Generated to type the string "fedisplacementmap". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fedisplacementmap fedisplacementmap=null; + /** + * Generated to type the string "fedistantlight". + * @exclude + */ + @jsweet.lang.StringType + public interface fedistantlight { + } + /** + * Generated to type the string "fedistantlight". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fedistantlight fedistantlight=null; + /** + * Generated to type the string "feflood". + * @exclude + */ + @jsweet.lang.StringType + public interface feflood { + } + /** + * Generated to type the string "feflood". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.feflood feflood=null; + /** + * Generated to type the string "fefunca". + * @exclude + */ + @jsweet.lang.StringType + public interface fefunca { + } + /** + * Generated to type the string "fefunca". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fefunca fefunca=null; + /** + * Generated to type the string "fefuncb". + * @exclude + */ + @jsweet.lang.StringType + public interface fefuncb { + } + /** + * Generated to type the string "fefuncb". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fefuncb fefuncb=null; + /** + * Generated to type the string "fefuncg". + * @exclude + */ + @jsweet.lang.StringType + public interface fefuncg { + } + /** + * Generated to type the string "fefuncg". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fefuncg fefuncg=null; + /** + * Generated to type the string "fefuncr". + * @exclude + */ + @jsweet.lang.StringType + public interface fefuncr { + } + /** + * Generated to type the string "fefuncr". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fefuncr fefuncr=null; + /** + * Generated to type the string "fegaussianblur". + * @exclude + */ + @jsweet.lang.StringType + public interface fegaussianblur { + } + /** + * Generated to type the string "fegaussianblur". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fegaussianblur fegaussianblur=null; + /** + * Generated to type the string "feimage". + * @exclude + */ + @jsweet.lang.StringType + public interface feimage { + } + /** + * Generated to type the string "feimage". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.feimage feimage=null; + /** + * Generated to type the string "femerge". + * @exclude + */ + @jsweet.lang.StringType + public interface femerge { + } + /** + * Generated to type the string "femerge". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.femerge femerge=null; + /** + * Generated to type the string "femergenode". + * @exclude + */ + @jsweet.lang.StringType + public interface femergenode { + } + /** + * Generated to type the string "femergenode". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.femergenode femergenode=null; + /** + * Generated to type the string "femorphology". + * @exclude + */ + @jsweet.lang.StringType + public interface femorphology { + } + /** + * Generated to type the string "femorphology". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.femorphology femorphology=null; + /** + * Generated to type the string "feoffset". + * @exclude + */ + @jsweet.lang.StringType + public interface feoffset { + } + /** + * Generated to type the string "feoffset". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.feoffset feoffset=null; + /** + * Generated to type the string "fepointlight". + * @exclude + */ + @jsweet.lang.StringType + public interface fepointlight { + } + /** + * Generated to type the string "fepointlight". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fepointlight fepointlight=null; + /** + * Generated to type the string "fespecularlighting". + * @exclude + */ + @jsweet.lang.StringType + public interface fespecularlighting { + } + /** + * Generated to type the string "fespecularlighting". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fespecularlighting fespecularlighting=null; + /** + * Generated to type the string "fespotlight". + * @exclude + */ + @jsweet.lang.StringType + public interface fespotlight { + } + /** + * Generated to type the string "fespotlight". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fespotlight fespotlight=null; + /** + * Generated to type the string "fetile". + * @exclude + */ + @jsweet.lang.StringType + public interface fetile { + } + /** + * Generated to type the string "fetile". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fetile fetile=null; + /** + * Generated to type the string "feturbulence". + * @exclude + */ + @jsweet.lang.StringType + public interface feturbulence { + } + /** + * Generated to type the string "feturbulence". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.feturbulence feturbulence=null; + /** + * Generated to type the string "figcaption". + * @exclude + */ + @jsweet.lang.StringType + public interface figcaption { + } + /** + * Generated to type the string "figcaption". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.figcaption figcaption=null; + /** + * Generated to type the string "figure". + * @exclude + */ + @jsweet.lang.StringType + public interface figure { + } + /** + * Generated to type the string "figure". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.figure figure=null; + /** + * Generated to type the string "filter". + * @exclude + */ + @jsweet.lang.StringType + public interface filter { + } + /** + * Generated to type the string "filter". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.filter filter=null; + /** + * Generated to type the string "footer". + * @exclude + */ + @jsweet.lang.StringType + public interface footer { + } + /** + * Generated to type the string "footer". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.footer footer=null; + /** + * Generated to type the string "foreignobject". + * @exclude + */ + @jsweet.lang.StringType + public interface foreignobject { + } + /** + * Generated to type the string "foreignobject". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.foreignobject foreignobject=null; + /** + * Generated to type the string "g". + * @exclude + */ + @jsweet.lang.StringType + public interface g { + } + /** + * Generated to type the string "g". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.g g=null; + /** + * Generated to type the string "header". + * @exclude + */ + @jsweet.lang.StringType + public interface header { + } + /** + * Generated to type the string "header". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.header header=null; + /** + * Generated to type the string "hgroup". + * @exclude + */ + @jsweet.lang.StringType + public interface hgroup { + } + /** + * Generated to type the string "hgroup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.hgroup hgroup=null; + /** + * Generated to type the string "image". + * @exclude + */ + @jsweet.lang.StringType + public interface image { + } + /** + * Generated to type the string "image". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.image image=null; + /** + * Generated to type the string "line". + * @exclude + */ + @jsweet.lang.StringType + public interface line { + } + /** + * Generated to type the string "line". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.line line=null; + /** + * Generated to type the string "lineargradient". + * @exclude + */ + @jsweet.lang.StringType + public interface lineargradient { + } + /** + * Generated to type the string "lineargradient". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.lineargradient lineargradient=null; + /** + * Generated to type the string "mark". + * @exclude + */ + @jsweet.lang.StringType + public interface mark { + } + /** + * Generated to type the string "mark". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mark mark=null; + /** + * Generated to type the string "marker". + * @exclude + */ + @jsweet.lang.StringType + public interface marker { + } + /** + * Generated to type the string "marker". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.marker marker=null; + /** + * Generated to type the string "mask". + * @exclude + */ + @jsweet.lang.StringType + public interface mask { + } + /** + * Generated to type the string "mask". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mask mask=null; + /** + * Generated to type the string "metadata". + * @exclude + */ + @jsweet.lang.StringType + public interface metadata { + } + /** + * Generated to type the string "metadata". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.metadata metadata=null; + /** + * Generated to type the string "nav". + * @exclude + */ + @jsweet.lang.StringType + public interface nav { + } + /** + * Generated to type the string "nav". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.nav nav=null; + /** + * Generated to type the string "noframes". + * @exclude + */ + @jsweet.lang.StringType + public interface noframes { + } + /** + * Generated to type the string "noframes". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.noframes noframes=null; + /** + * Generated to type the string "noscript". + * @exclude + */ + @jsweet.lang.StringType + public interface noscript { + } + /** + * Generated to type the string "noscript". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.noscript noscript=null; + /** + * Generated to type the string "path". + * @exclude + */ + @jsweet.lang.StringType + public interface path { + } + /** + * Generated to type the string "path". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.path path=null; + /** + * Generated to type the string "pattern". + * @exclude + */ + @jsweet.lang.StringType + public interface pattern { + } + /** + * Generated to type the string "pattern". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pattern pattern=null; + /** + * Generated to type the string "polygon". + * @exclude + */ + @jsweet.lang.StringType + public interface polygon { + } + /** + * Generated to type the string "polygon". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.polygon polygon=null; + /** + * Generated to type the string "polyline". + * @exclude + */ + @jsweet.lang.StringType + public interface polyline { + } + /** + * Generated to type the string "polyline". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.polyline polyline=null; + /** + * Generated to type the string "radialgradient". + * @exclude + */ + @jsweet.lang.StringType + public interface radialgradient { + } + /** + * Generated to type the string "radialgradient". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.radialgradient radialgradient=null; + /** + * Generated to type the string "rect". + * @exclude + */ + @jsweet.lang.StringType + public interface rect { + } + /** + * Generated to type the string "rect". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.rect rect=null; + /** + * Generated to type the string "section". + * @exclude + */ + @jsweet.lang.StringType + public interface section { + } + /** + * Generated to type the string "section". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.section section=null; + /** + * Generated to type the string "stop". + * @exclude + */ + @jsweet.lang.StringType + public interface stop { + } + /** + * Generated to type the string "stop". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.stop stop=null; + /** + * Generated to type the string "svg". + * @exclude + */ + @jsweet.lang.StringType + public interface svg { + } + /** + * Generated to type the string "svg". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.svg svg=null; + /** + * Generated to type the string "switch". + * @exclude + */ + @jsweet.lang.StringType("switch") + public interface Switch { + } + /** + * Generated to type the string "switch". + * @exclude + */ + @jsweet.lang.StringType("switch") + public static def.js.StringTypes.Switch Switch=null; + /** + * Generated to type the string "symbol". + * @exclude + */ + @jsweet.lang.StringType + public interface symbol { + } + /** + * Generated to type the string "symbol". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.symbol symbol=null; + /** + * Generated to type the string "text". + * @exclude + */ + @jsweet.lang.StringType + public interface text { + } + /** + * Generated to type the string "text". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.text text=null; + /** + * Generated to type the string "textpath". + * @exclude + */ + @jsweet.lang.StringType + public interface textpath { + } + /** + * Generated to type the string "textpath". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.textpath textpath=null; + /** + * Generated to type the string "tspan". + * @exclude + */ + @jsweet.lang.StringType + public interface tspan { + } + /** + * Generated to type the string "tspan". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.tspan tspan=null; + /** + * Generated to type the string "use". + * @exclude + */ + @jsweet.lang.StringType + public interface use { + } + /** + * Generated to type the string "use". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.use use=null; + /** + * Generated to type the string "view". + * @exclude + */ + @jsweet.lang.StringType + public interface view { + } + /** + * Generated to type the string "view". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.view view=null; + /** + * Generated to type the string "wbr". + * @exclude + */ + @jsweet.lang.StringType + public interface wbr { + } + /** + * Generated to type the string "wbr". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.wbr wbr=null; + /** + * Generated to type the string "MSContentZoom". + * @exclude + */ + @jsweet.lang.StringType + public interface MSContentZoom { + } + /** + * Generated to type the string "MSContentZoom". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSContentZoom MSContentZoom=null; + /** + * Generated to type the string "MSGestureChange". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureChange { + } + /** + * Generated to type the string "MSGestureChange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureChange MSGestureChange=null; + /** + * Generated to type the string "MSGestureDoubleTap". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureDoubleTap { + } + /** + * Generated to type the string "MSGestureDoubleTap". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureDoubleTap MSGestureDoubleTap=null; + /** + * Generated to type the string "MSGestureEnd". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureEnd { + } + /** + * Generated to type the string "MSGestureEnd". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureEnd MSGestureEnd=null; + /** + * Generated to type the string "MSGestureHold". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureHold { + } + /** + * Generated to type the string "MSGestureHold". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureHold MSGestureHold=null; + /** + * Generated to type the string "MSGestureStart". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureStart { + } + /** + * Generated to type the string "MSGestureStart". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureStart MSGestureStart=null; + /** + * Generated to type the string "MSGestureTap". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureTap { + } + /** + * Generated to type the string "MSGestureTap". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureTap MSGestureTap=null; + /** + * Generated to type the string "MSInertiaStart". + * @exclude + */ + @jsweet.lang.StringType + public interface MSInertiaStart { + } + /** + * Generated to type the string "MSInertiaStart". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSInertiaStart MSInertiaStart=null; + /** + * Generated to type the string "MSManipulationStateChanged". + * @exclude + */ + @jsweet.lang.StringType + public interface MSManipulationStateChanged { + } + /** + * Generated to type the string "MSManipulationStateChanged". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSManipulationStateChanged MSManipulationStateChanged=null; + /** + * Generated to type the string "MSPointerCancel". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerCancel { + } + /** + * Generated to type the string "MSPointerCancel". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerCancel MSPointerCancel=null; + /** + * Generated to type the string "MSPointerDown". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerDown { + } + /** + * Generated to type the string "MSPointerDown". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerDown MSPointerDown=null; + /** + * Generated to type the string "MSPointerEnter". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerEnter { + } + /** + * Generated to type the string "MSPointerEnter". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerEnter MSPointerEnter=null; + /** + * Generated to type the string "MSPointerLeave". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerLeave { + } + /** + * Generated to type the string "MSPointerLeave". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerLeave MSPointerLeave=null; + /** + * Generated to type the string "MSPointerMove". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerMove { + } + /** + * Generated to type the string "MSPointerMove". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerMove MSPointerMove=null; + /** + * Generated to type the string "MSPointerOut". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerOut { + } + /** + * Generated to type the string "MSPointerOut". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerOut MSPointerOut=null; + /** + * Generated to type the string "MSPointerOver". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerOver { + } + /** + * Generated to type the string "MSPointerOver". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerOver MSPointerOver=null; + /** + * Generated to type the string "MSPointerUp". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerUp { + } + /** + * Generated to type the string "MSPointerUp". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerUp MSPointerUp=null; + /** + * Generated to type the string "abort". + * @exclude + */ + @jsweet.lang.StringType + public interface abort { + } + /** + * Generated to type the string "abort". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.abort abort=null; + /** + * Generated to type the string "activate". + * @exclude + */ + @jsweet.lang.StringType + public interface activate { + } + /** + * Generated to type the string "activate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.activate activate=null; + /** + * Generated to type the string "beforeactivate". + * @exclude + */ + @jsweet.lang.StringType + public interface beforeactivate { + } + /** + * Generated to type the string "beforeactivate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforeactivate beforeactivate=null; + /** + * Generated to type the string "beforedeactivate". + * @exclude + */ + @jsweet.lang.StringType + public interface beforedeactivate { + } + /** + * Generated to type the string "beforedeactivate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforedeactivate beforedeactivate=null; + /** + * Generated to type the string "blur". + * @exclude + */ + @jsweet.lang.StringType + public interface blur { + } + /** + * Generated to type the string "blur". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.blur blur=null; + /** + * Generated to type the string "canplay". + * @exclude + */ + @jsweet.lang.StringType + public interface canplay { + } + /** + * Generated to type the string "canplay". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.canplay canplay=null; + /** + * Generated to type the string "canplaythrough". + * @exclude + */ + @jsweet.lang.StringType + public interface canplaythrough { + } + /** + * Generated to type the string "canplaythrough". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.canplaythrough canplaythrough=null; + /** + * Generated to type the string "click". + * @exclude + */ + @jsweet.lang.StringType + public interface click { + } + /** + * Generated to type the string "click". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.click click=null; + /** + * Generated to type the string "contextmenu". + * @exclude + */ + @jsweet.lang.StringType + public interface contextmenu { + } + /** + * Generated to type the string "contextmenu". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.contextmenu contextmenu=null; + /** + * Generated to type the string "dblclick". + * @exclude + */ + @jsweet.lang.StringType + public interface dblclick { + } + /** + * Generated to type the string "dblclick". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dblclick dblclick=null; + /** + * Generated to type the string "deactivate". + * @exclude + */ + @jsweet.lang.StringType + public interface deactivate { + } + /** + * Generated to type the string "deactivate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.deactivate deactivate=null; + /** + * Generated to type the string "drag". + * @exclude + */ + @jsweet.lang.StringType + public interface drag { + } + /** + * Generated to type the string "drag". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.drag drag=null; + /** + * Generated to type the string "dragend". + * @exclude + */ + @jsweet.lang.StringType + public interface dragend { + } + /** + * Generated to type the string "dragend". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dragend dragend=null; + /** + * Generated to type the string "dragenter". + * @exclude + */ + @jsweet.lang.StringType + public interface dragenter { + } + /** + * Generated to type the string "dragenter". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dragenter dragenter=null; + /** + * Generated to type the string "dragleave". + * @exclude + */ + @jsweet.lang.StringType + public interface dragleave { + } + /** + * Generated to type the string "dragleave". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dragleave dragleave=null; + /** + * Generated to type the string "dragover". + * @exclude + */ + @jsweet.lang.StringType + public interface dragover { + } + /** + * Generated to type the string "dragover". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dragover dragover=null; + /** + * Generated to type the string "dragstart". + * @exclude + */ + @jsweet.lang.StringType + public interface dragstart { + } + /** + * Generated to type the string "dragstart". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.dragstart dragstart=null; + /** + * Generated to type the string "drop". + * @exclude + */ + @jsweet.lang.StringType + public interface drop { + } + /** + * Generated to type the string "drop". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.drop drop=null; + /** + * Generated to type the string "durationchange". + * @exclude + */ + @jsweet.lang.StringType + public interface durationchange { + } + /** + * Generated to type the string "durationchange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.durationchange durationchange=null; + /** + * Generated to type the string "emptied". + * @exclude + */ + @jsweet.lang.StringType + public interface emptied { + } + /** + * Generated to type the string "emptied". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.emptied emptied=null; + /** + * Generated to type the string "focus". + * @exclude + */ + @jsweet.lang.StringType + public interface focus { + } + /** + * Generated to type the string "focus". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.focus focus=null; + /** + * Generated to type the string "fullscreenchange". + * @exclude + */ + @jsweet.lang.StringType + public interface fullscreenchange { + } + /** + * Generated to type the string "fullscreenchange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fullscreenchange fullscreenchange=null; + /** + * Generated to type the string "fullscreenerror". + * @exclude + */ + @jsweet.lang.StringType + public interface fullscreenerror { + } + /** + * Generated to type the string "fullscreenerror". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.fullscreenerror fullscreenerror=null; + /** + * Generated to type the string "keydown". + * @exclude + */ + @jsweet.lang.StringType + public interface keydown { + } + /** + * Generated to type the string "keydown". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.keydown keydown=null; + /** + * Generated to type the string "keypress". + * @exclude + */ + @jsweet.lang.StringType + public interface keypress { + } + /** + * Generated to type the string "keypress". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.keypress keypress=null; + /** + * Generated to type the string "keyup". + * @exclude + */ + @jsweet.lang.StringType + public interface keyup { + } + /** + * Generated to type the string "keyup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.keyup keyup=null; + /** + * Generated to type the string "load". + * @exclude + */ + @jsweet.lang.StringType + public interface load { + } + /** + * Generated to type the string "load". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.load load=null; + /** + * Generated to type the string "loadeddata". + * @exclude + */ + @jsweet.lang.StringType + public interface loadeddata { + } + /** + * Generated to type the string "loadeddata". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.loadeddata loadeddata=null; + /** + * Generated to type the string "loadedmetadata". + * @exclude + */ + @jsweet.lang.StringType + public interface loadedmetadata { + } + /** + * Generated to type the string "loadedmetadata". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.loadedmetadata loadedmetadata=null; + /** + * Generated to type the string "loadstart". + * @exclude + */ + @jsweet.lang.StringType + public interface loadstart { + } + /** + * Generated to type the string "loadstart". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.loadstart loadstart=null; + /** + * Generated to type the string "mousedown". + * @exclude + */ + @jsweet.lang.StringType + public interface mousedown { + } + /** + * Generated to type the string "mousedown". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mousedown mousedown=null; + /** + * Generated to type the string "mousemove". + * @exclude + */ + @jsweet.lang.StringType + public interface mousemove { + } + /** + * Generated to type the string "mousemove". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mousemove mousemove=null; + /** + * Generated to type the string "mouseout". + * @exclude + */ + @jsweet.lang.StringType + public interface mouseout { + } + /** + * Generated to type the string "mouseout". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mouseout mouseout=null; + /** + * Generated to type the string "mouseover". + * @exclude + */ + @jsweet.lang.StringType + public interface mouseover { + } + /** + * Generated to type the string "mouseover". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mouseover mouseover=null; + /** + * Generated to type the string "mouseup". + * @exclude + */ + @jsweet.lang.StringType + public interface mouseup { + } + /** + * Generated to type the string "mouseup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mouseup mouseup=null; + /** + * Generated to type the string "mousewheel". + * @exclude + */ + @jsweet.lang.StringType + public interface mousewheel { + } + /** + * Generated to type the string "mousewheel". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mousewheel mousewheel=null; + /** + * Generated to type the string "mssitemodejumplistitemremoved". + * @exclude + */ + @jsweet.lang.StringType + public interface mssitemodejumplistitemremoved { + } + /** + * Generated to type the string "mssitemodejumplistitemremoved". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mssitemodejumplistitemremoved mssitemodejumplistitemremoved=null; + /** + * Generated to type the string "msthumbnailclick". + * @exclude + */ + @jsweet.lang.StringType + public interface msthumbnailclick { + } + /** + * Generated to type the string "msthumbnailclick". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.msthumbnailclick msthumbnailclick=null; + /** + * Generated to type the string "pause". + * @exclude + */ + @jsweet.lang.StringType + public interface pause { + } + /** + * Generated to type the string "pause". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pause pause=null; + /** + * Generated to type the string "play". + * @exclude + */ + @jsweet.lang.StringType + public interface play { + } + /** + * Generated to type the string "play". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.play play=null; + /** + * Generated to type the string "playing". + * @exclude + */ + @jsweet.lang.StringType + public interface playing { + } + /** + * Generated to type the string "playing". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.playing playing=null; + /** + * Generated to type the string "pointercancel". + * @exclude + */ + @jsweet.lang.StringType + public interface pointercancel { + } + /** + * Generated to type the string "pointercancel". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointercancel pointercancel=null; + /** + * Generated to type the string "pointerdown". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerdown { + } + /** + * Generated to type the string "pointerdown". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerdown pointerdown=null; + /** + * Generated to type the string "pointerenter". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerenter { + } + /** + * Generated to type the string "pointerenter". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerenter pointerenter=null; + /** + * Generated to type the string "pointerleave". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerleave { + } + /** + * Generated to type the string "pointerleave". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerleave pointerleave=null; + /** + * Generated to type the string "pointerlockchange". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerlockchange { + } + /** + * Generated to type the string "pointerlockchange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerlockchange pointerlockchange=null; + /** + * Generated to type the string "pointerlockerror". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerlockerror { + } + /** + * Generated to type the string "pointerlockerror". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerlockerror pointerlockerror=null; + /** + * Generated to type the string "pointermove". + * @exclude + */ + @jsweet.lang.StringType + public interface pointermove { + } + /** + * Generated to type the string "pointermove". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointermove pointermove=null; + /** + * Generated to type the string "pointerout". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerout { + } + /** + * Generated to type the string "pointerout". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerout pointerout=null; + /** + * Generated to type the string "pointerover". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerover { + } + /** + * Generated to type the string "pointerover". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerover pointerover=null; + /** + * Generated to type the string "pointerup". + * @exclude + */ + @jsweet.lang.StringType + public interface pointerup { + } + /** + * Generated to type the string "pointerup". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pointerup pointerup=null; + /** + * Generated to type the string "ratechange". + * @exclude + */ + @jsweet.lang.StringType + public interface ratechange { + } + /** + * Generated to type the string "ratechange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ratechange ratechange=null; + /** + * Generated to type the string "readystatechange". + * @exclude + */ + @jsweet.lang.StringType + public interface readystatechange { + } + /** + * Generated to type the string "readystatechange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.readystatechange readystatechange=null; + /** + * Generated to type the string "reset". + * @exclude + */ + @jsweet.lang.StringType + public interface reset { + } + /** + * Generated to type the string "reset". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.reset reset=null; + /** + * Generated to type the string "scroll". + * @exclude + */ + @jsweet.lang.StringType + public interface scroll { + } + /** + * Generated to type the string "scroll". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.scroll scroll=null; + /** + * Generated to type the string "seeked". + * @exclude + */ + @jsweet.lang.StringType + public interface seeked { + } + /** + * Generated to type the string "seeked". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.seeked seeked=null; + /** + * Generated to type the string "seeking". + * @exclude + */ + @jsweet.lang.StringType + public interface seeking { + } + /** + * Generated to type the string "seeking". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.seeking seeking=null; + /** + * Generated to type the string "selectstart". + * @exclude + */ + @jsweet.lang.StringType + public interface selectstart { + } + /** + * Generated to type the string "selectstart". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.selectstart selectstart=null; + /** + * Generated to type the string "stalled". + * @exclude + */ + @jsweet.lang.StringType + public interface stalled { + } + /** + * Generated to type the string "stalled". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.stalled stalled=null; + /** + * Generated to type the string "submit". + * @exclude + */ + @jsweet.lang.StringType + public interface submit { + } + /** + * Generated to type the string "submit". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.submit submit=null; + /** + * Generated to type the string "suspend". + * @exclude + */ + @jsweet.lang.StringType + public interface suspend { + } + /** + * Generated to type the string "suspend". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.suspend suspend=null; + /** + * Generated to type the string "timeupdate". + * @exclude + */ + @jsweet.lang.StringType + public interface timeupdate { + } + /** + * Generated to type the string "timeupdate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.timeupdate timeupdate=null; + /** + * Generated to type the string "touchcancel". + * @exclude + */ + @jsweet.lang.StringType + public interface touchcancel { + } + /** + * Generated to type the string "touchcancel". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.touchcancel touchcancel=null; + /** + * Generated to type the string "touchend". + * @exclude + */ + @jsweet.lang.StringType + public interface touchend { + } + /** + * Generated to type the string "touchend". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.touchend touchend=null; + /** + * Generated to type the string "touchmove". + * @exclude + */ + @jsweet.lang.StringType + public interface touchmove { + } + /** + * Generated to type the string "touchmove". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.touchmove touchmove=null; + /** + * Generated to type the string "touchstart". + * @exclude + */ + @jsweet.lang.StringType + public interface touchstart { + } + /** + * Generated to type the string "touchstart". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.touchstart touchstart=null; + /** + * Generated to type the string "volumechange". + * @exclude + */ + @jsweet.lang.StringType + public interface volumechange { + } + /** + * Generated to type the string "volumechange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.volumechange volumechange=null; + /** + * Generated to type the string "waiting". + * @exclude + */ + @jsweet.lang.StringType + public interface waiting { + } + /** + * Generated to type the string "waiting". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.waiting waiting=null; + /** + * Generated to type the string "webkitfullscreenchange". + * @exclude + */ + @jsweet.lang.StringType + public interface webkitfullscreenchange { + } + /** + * Generated to type the string "webkitfullscreenchange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.webkitfullscreenchange webkitfullscreenchange=null; + /** + * Generated to type the string "webkitfullscreenerror". + * @exclude + */ + @jsweet.lang.StringType + public interface webkitfullscreenerror { + } + /** + * Generated to type the string "webkitfullscreenerror". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.webkitfullscreenerror webkitfullscreenerror=null; + /** + * Generated to type the string "wheel". + * @exclude + */ + @jsweet.lang.StringType + public interface wheel { + } + /** + * Generated to type the string "wheel". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.wheel wheel=null; + /** + * Generated to type the string "AnimationEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface AnimationEvent { + } + /** + * Generated to type the string "AnimationEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.AnimationEvent AnimationEvent=null; + /** + * Generated to type the string "AriaRequestEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface AriaRequestEvent { + } + /** + * Generated to type the string "AriaRequestEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.AriaRequestEvent AriaRequestEvent=null; + /** + * Generated to type the string "AudioProcessingEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface AudioProcessingEvent { + } + /** + * Generated to type the string "AudioProcessingEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.AudioProcessingEvent AudioProcessingEvent=null; + /** + * Generated to type the string "BeforeUnloadEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface BeforeUnloadEvent { + } + /** + * Generated to type the string "BeforeUnloadEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.BeforeUnloadEvent BeforeUnloadEvent=null; + /** + * Generated to type the string "ClipboardEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface ClipboardEvent { + } + /** + * Generated to type the string "ClipboardEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ClipboardEvent ClipboardEvent=null; + /** + * Generated to type the string "CloseEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface CloseEvent { + } + /** + * Generated to type the string "CloseEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.CloseEvent CloseEvent=null; + /** + * Generated to type the string "CommandEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface CommandEvent { + } + /** + * Generated to type the string "CommandEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.CommandEvent CommandEvent=null; + /** + * Generated to type the string "CompositionEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface CompositionEvent { + } + /** + * Generated to type the string "CompositionEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.CompositionEvent CompositionEvent=null; + /** + * Generated to type the string "CustomEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface CustomEvent { + } + /** + * Generated to type the string "CustomEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.CustomEvent CustomEvent=null; + /** + * Generated to type the string "DeviceMotionEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface DeviceMotionEvent { + } + /** + * Generated to type the string "DeviceMotionEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.DeviceMotionEvent DeviceMotionEvent=null; + /** + * Generated to type the string "DeviceOrientationEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface DeviceOrientationEvent { + } + /** + * Generated to type the string "DeviceOrientationEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.DeviceOrientationEvent DeviceOrientationEvent=null; + /** + * Generated to type the string "DragEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface DragEvent { + } + /** + * Generated to type the string "DragEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.DragEvent DragEvent=null; + /** + * Generated to type the string "ErrorEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface ErrorEvent { + } + /** + * Generated to type the string "ErrorEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ErrorEvent ErrorEvent=null; + /** + * Generated to type the string "Event". + * @exclude + */ + @jsweet.lang.StringType + public interface Event { + } + /** + * Generated to type the string "Event". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.Event Event=null; + /** + * Generated to type the string "Events". + * @exclude + */ + @jsweet.lang.StringType + public interface Events { + } + /** + * Generated to type the string "Events". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.Events Events=null; + /** + * Generated to type the string "FocusEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface FocusEvent { + } + /** + * Generated to type the string "FocusEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.FocusEvent FocusEvent=null; + /** + * Generated to type the string "GamepadEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface GamepadEvent { + } + /** + * Generated to type the string "GamepadEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.GamepadEvent GamepadEvent=null; + /** + * Generated to type the string "HashChangeEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface HashChangeEvent { + } + /** + * Generated to type the string "HashChangeEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.HashChangeEvent HashChangeEvent=null; + /** + * Generated to type the string "IDBVersionChangeEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface IDBVersionChangeEvent { + } + /** + * Generated to type the string "IDBVersionChangeEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.IDBVersionChangeEvent IDBVersionChangeEvent=null; + /** + * Generated to type the string "KeyboardEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface KeyboardEvent { + } + /** + * Generated to type the string "KeyboardEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.KeyboardEvent KeyboardEvent=null; + /** + * Generated to type the string "LongRunningScriptDetectedEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface LongRunningScriptDetectedEvent { + } + /** + * Generated to type the string "LongRunningScriptDetectedEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.LongRunningScriptDetectedEvent LongRunningScriptDetectedEvent=null; + /** + * Generated to type the string "MSGestureEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGestureEvent { + } + /** + * Generated to type the string "MSGestureEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGestureEvent MSGestureEvent=null; + /** + * Generated to type the string "MSManipulationEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MSManipulationEvent { + } + /** + * Generated to type the string "MSManipulationEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSManipulationEvent MSManipulationEvent=null; + /** + * Generated to type the string "MSMediaKeyMessageEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MSMediaKeyMessageEvent { + } + /** + * Generated to type the string "MSMediaKeyMessageEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSMediaKeyMessageEvent MSMediaKeyMessageEvent=null; + /** + * Generated to type the string "MSMediaKeyNeededEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MSMediaKeyNeededEvent { + } + /** + * Generated to type the string "MSMediaKeyNeededEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSMediaKeyNeededEvent MSMediaKeyNeededEvent=null; + /** + * Generated to type the string "MSPointerEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MSPointerEvent { + } + /** + * Generated to type the string "MSPointerEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSPointerEvent MSPointerEvent=null; + /** + * Generated to type the string "MSSiteModeEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MSSiteModeEvent { + } + /** + * Generated to type the string "MSSiteModeEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSSiteModeEvent MSSiteModeEvent=null; + /** + * Generated to type the string "MessageEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MessageEvent { + } + /** + * Generated to type the string "MessageEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MessageEvent MessageEvent=null; + /** + * Generated to type the string "MouseEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MouseEvent { + } + /** + * Generated to type the string "MouseEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MouseEvent MouseEvent=null; + /** + * Generated to type the string "MouseEvents". + * @exclude + */ + @jsweet.lang.StringType + public interface MouseEvents { + } + /** + * Generated to type the string "MouseEvents". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MouseEvents MouseEvents=null; + /** + * Generated to type the string "MouseWheelEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MouseWheelEvent { + } + /** + * Generated to type the string "MouseWheelEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MouseWheelEvent MouseWheelEvent=null; + /** + * Generated to type the string "MutationEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface MutationEvent { + } + /** + * Generated to type the string "MutationEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MutationEvent MutationEvent=null; + /** + * Generated to type the string "MutationEvents". + * @exclude + */ + @jsweet.lang.StringType + public interface MutationEvents { + } + /** + * Generated to type the string "MutationEvents". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MutationEvents MutationEvents=null; + /** + * Generated to type the string "NavigationCompletedEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface NavigationCompletedEvent { + } + /** + * Generated to type the string "NavigationCompletedEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.NavigationCompletedEvent NavigationCompletedEvent=null; + /** + * Generated to type the string "NavigationEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface NavigationEvent { + } + /** + * Generated to type the string "NavigationEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.NavigationEvent NavigationEvent=null; + /** + * Generated to type the string "NavigationEventWithReferrer". + * @exclude + */ + @jsweet.lang.StringType + public interface NavigationEventWithReferrer { + } + /** + * Generated to type the string "NavigationEventWithReferrer". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.NavigationEventWithReferrer NavigationEventWithReferrer=null; + /** + * Generated to type the string "OfflineAudioCompletionEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface OfflineAudioCompletionEvent { + } + /** + * Generated to type the string "OfflineAudioCompletionEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.OfflineAudioCompletionEvent OfflineAudioCompletionEvent=null; + /** + * Generated to type the string "PageTransitionEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface PageTransitionEvent { + } + /** + * Generated to type the string "PageTransitionEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.PageTransitionEvent PageTransitionEvent=null; + /** + * Generated to type the string "PermissionRequestedEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface PermissionRequestedEvent { + } + /** + * Generated to type the string "PermissionRequestedEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.PermissionRequestedEvent PermissionRequestedEvent=null; + /** + * Generated to type the string "PointerEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface PointerEvent { + } + /** + * Generated to type the string "PointerEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.PointerEvent PointerEvent=null; + /** + * Generated to type the string "PopStateEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface PopStateEvent { + } + /** + * Generated to type the string "PopStateEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.PopStateEvent PopStateEvent=null; + /** + * Generated to type the string "ProgressEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface ProgressEvent { + } + /** + * Generated to type the string "ProgressEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ProgressEvent ProgressEvent=null; + /** + * Generated to type the string "SVGZoomEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface SVGZoomEvent { + } + /** + * Generated to type the string "SVGZoomEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.SVGZoomEvent SVGZoomEvent=null; + /** + * Generated to type the string "SVGZoomEvents". + * @exclude + */ + @jsweet.lang.StringType + public interface SVGZoomEvents { + } + /** + * Generated to type the string "SVGZoomEvents". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.SVGZoomEvents SVGZoomEvents=null; + /** + * Generated to type the string "ScriptNotifyEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface ScriptNotifyEvent { + } + /** + * Generated to type the string "ScriptNotifyEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ScriptNotifyEvent ScriptNotifyEvent=null; + /** + * Generated to type the string "StorageEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface StorageEvent { + } + /** + * Generated to type the string "StorageEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.StorageEvent StorageEvent=null; + /** + * Generated to type the string "TextEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface TextEvent { + } + /** + * Generated to type the string "TextEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.TextEvent TextEvent=null; + /** + * Generated to type the string "TouchEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface TouchEvent { + } + /** + * Generated to type the string "TouchEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.TouchEvent TouchEvent=null; + /** + * Generated to type the string "TrackEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface TrackEvent { + } + /** + * Generated to type the string "TrackEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.TrackEvent TrackEvent=null; + /** + * Generated to type the string "TransitionEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface TransitionEvent { + } + /** + * Generated to type the string "TransitionEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.TransitionEvent TransitionEvent=null; + /** + * Generated to type the string "UIEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface UIEvent { + } + /** + * Generated to type the string "UIEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.UIEvent UIEvent=null; + /** + * Generated to type the string "UIEvents". + * @exclude + */ + @jsweet.lang.StringType + public interface UIEvents { + } + /** + * Generated to type the string "UIEvents". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.UIEvents UIEvents=null; + /** + * Generated to type the string "UnviewableContentIdentifiedEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface UnviewableContentIdentifiedEvent { + } + /** + * Generated to type the string "UnviewableContentIdentifiedEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.UnviewableContentIdentifiedEvent UnviewableContentIdentifiedEvent=null; + /** + * Generated to type the string "WebGLContextEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface WebGLContextEvent { + } + /** + * Generated to type the string "WebGLContextEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.WebGLContextEvent WebGLContextEvent=null; + /** + * Generated to type the string "WheelEvent". + * @exclude + */ + @jsweet.lang.StringType + public interface WheelEvent { + } + /** + * Generated to type the string "WheelEvent". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.WheelEvent WheelEvent=null; + /** + * Generated to type the string "MSGotPointerCapture". + * @exclude + */ + @jsweet.lang.StringType + public interface MSGotPointerCapture { + } + /** + * Generated to type the string "MSGotPointerCapture". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSGotPointerCapture MSGotPointerCapture=null; + /** + * Generated to type the string "MSLostPointerCapture". + * @exclude + */ + @jsweet.lang.StringType + public interface MSLostPointerCapture { + } + /** + * Generated to type the string "MSLostPointerCapture". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSLostPointerCapture MSLostPointerCapture=null; + /** + * Generated to type the string "ariarequest". + * @exclude + */ + @jsweet.lang.StringType + public interface ariarequest { + } + /** + * Generated to type the string "ariarequest". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.ariarequest ariarequest=null; + /** + * Generated to type the string "command". + * @exclude + */ + @jsweet.lang.StringType + public interface command { + } + /** + * Generated to type the string "command". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.command command=null; + /** + * Generated to type the string "gotpointercapture". + * @exclude + */ + @jsweet.lang.StringType + public interface gotpointercapture { + } + /** + * Generated to type the string "gotpointercapture". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.gotpointercapture gotpointercapture=null; + /** + * Generated to type the string "lostpointercapture". + * @exclude + */ + @jsweet.lang.StringType + public interface lostpointercapture { + } + /** + * Generated to type the string "lostpointercapture". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.lostpointercapture lostpointercapture=null; + /** + * Generated to type the string "loadend". + * @exclude + */ + @jsweet.lang.StringType + public interface loadend { + } + /** + * Generated to type the string "loadend". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.loadend loadend=null; + /** + * Generated to type the string "afterprint". + * @exclude + */ + @jsweet.lang.StringType + public interface afterprint { + } + /** + * Generated to type the string "afterprint". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.afterprint afterprint=null; + /** + * Generated to type the string "beforeprint". + * @exclude + */ + @jsweet.lang.StringType + public interface beforeprint { + } + /** + * Generated to type the string "beforeprint". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforeprint beforeprint=null; + /** + * Generated to type the string "beforeunload". + * @exclude + */ + @jsweet.lang.StringType + public interface beforeunload { + } + /** + * Generated to type the string "beforeunload". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforeunload beforeunload=null; + /** + * Generated to type the string "hashchange". + * @exclude + */ + @jsweet.lang.StringType + public interface hashchange { + } + /** + * Generated to type the string "hashchange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.hashchange hashchange=null; + /** + * Generated to type the string "message". + * @exclude + */ + @jsweet.lang.StringType + public interface message { + } + /** + * Generated to type the string "message". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.message message=null; + /** + * Generated to type the string "offline". + * @exclude + */ + @jsweet.lang.StringType + public interface offline { + } + /** + * Generated to type the string "offline". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.offline offline=null; + /** + * Generated to type the string "online". + * @exclude + */ + @jsweet.lang.StringType + public interface online { + } + /** + * Generated to type the string "online". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.online online=null; + /** + * Generated to type the string "orientationchange". + * @exclude + */ + @jsweet.lang.StringType + public interface orientationchange { + } + /** + * Generated to type the string "orientationchange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.orientationchange orientationchange=null; + /** + * Generated to type the string "pagehide". + * @exclude + */ + @jsweet.lang.StringType + public interface pagehide { + } + /** + * Generated to type the string "pagehide". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pagehide pagehide=null; + /** + * Generated to type the string "pageshow". + * @exclude + */ + @jsweet.lang.StringType + public interface pageshow { + } + /** + * Generated to type the string "pageshow". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.pageshow pageshow=null; + /** + * Generated to type the string "popstate". + * @exclude + */ + @jsweet.lang.StringType + public interface popstate { + } + /** + * Generated to type the string "popstate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.popstate popstate=null; + /** + * Generated to type the string "resize". + * @exclude + */ + @jsweet.lang.StringType + public interface resize { + } + /** + * Generated to type the string "resize". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.resize resize=null; + /** + * Generated to type the string "storage". + * @exclude + */ + @jsweet.lang.StringType + public interface storage { + } + /** + * Generated to type the string "storage". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.storage storage=null; + /** + * Generated to type the string "unload". + * @exclude + */ + @jsweet.lang.StringType + public interface unload { + } + /** + * Generated to type the string "unload". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.unload unload=null; + /** + * Generated to type the string "2d". + * @exclude + */ + @jsweet.lang.StringType("2d") + public interface _2d { + } + /** + * Generated to type the string "2d". + * @exclude + */ + @jsweet.lang.StringType("2d") + public static def.js.StringTypes._2d _2d=null; + /** + * Generated to type the string "experimental_webgl". + * @exclude + */ + @jsweet.lang.StringType + public interface experimental_webgl { + } + /** + * Generated to type the string "experimental_webgl". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.experimental_webgl experimental_webgl=null; + /** + * Generated to type the string "beforecopy". + * @exclude + */ + @jsweet.lang.StringType + public interface beforecopy { + } + /** + * Generated to type the string "beforecopy". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforecopy beforecopy=null; + /** + * Generated to type the string "beforecut". + * @exclude + */ + @jsweet.lang.StringType + public interface beforecut { + } + /** + * Generated to type the string "beforecut". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforecut beforecut=null; + /** + * Generated to type the string "beforepaste". + * @exclude + */ + @jsweet.lang.StringType + public interface beforepaste { + } + /** + * Generated to type the string "beforepaste". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.beforepaste beforepaste=null; + /** + * Generated to type the string "copy". + * @exclude + */ + @jsweet.lang.StringType + public interface copy { + } + /** + * Generated to type the string "copy". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.copy copy=null; + /** + * Generated to type the string "cuechange". + * @exclude + */ + @jsweet.lang.StringType + public interface cuechange { + } + /** + * Generated to type the string "cuechange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.cuechange cuechange=null; + /** + * Generated to type the string "cut". + * @exclude + */ + @jsweet.lang.StringType + public interface cut { + } + /** + * Generated to type the string "cut". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.cut cut=null; + /** + * Generated to type the string "mouseenter". + * @exclude + */ + @jsweet.lang.StringType + public interface mouseenter { + } + /** + * Generated to type the string "mouseenter". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mouseenter mouseenter=null; + /** + * Generated to type the string "mouseleave". + * @exclude + */ + @jsweet.lang.StringType + public interface mouseleave { + } + /** + * Generated to type the string "mouseleave". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.mouseleave mouseleave=null; + /** + * Generated to type the string "paste". + * @exclude + */ + @jsweet.lang.StringType + public interface paste { + } + /** + * Generated to type the string "paste". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.paste paste=null; + /** + * Generated to type the string "bounce". + * @exclude + */ + @jsweet.lang.StringType + public interface bounce { + } + /** + * Generated to type the string "bounce". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.bounce bounce=null; + /** + * Generated to type the string "finish". + * @exclude + */ + @jsweet.lang.StringType + public interface finish { + } + /** + * Generated to type the string "finish". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.finish finish=null; + /** + * Generated to type the string "start". + * @exclude + */ + @jsweet.lang.StringType + public interface start { + } + /** + * Generated to type the string "start". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.start start=null; + /** + * Generated to type the string "msneedkey". + * @exclude + */ + @jsweet.lang.StringType + public interface msneedkey { + } + /** + * Generated to type the string "msneedkey". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.msneedkey msneedkey=null; + /** + * Generated to type the string "MSVideoFormatChanged". + * @exclude + */ + @jsweet.lang.StringType + public interface MSVideoFormatChanged { + } + /** + * Generated to type the string "MSVideoFormatChanged". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSVideoFormatChanged MSVideoFormatChanged=null; + /** + * Generated to type the string "MSVideoFrameStepCompleted". + * @exclude + */ + @jsweet.lang.StringType + public interface MSVideoFrameStepCompleted { + } + /** + * Generated to type the string "MSVideoFrameStepCompleted". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSVideoFrameStepCompleted MSVideoFrameStepCompleted=null; + /** + * Generated to type the string "MSVideoOptimalLayoutChanged". + * @exclude + */ + @jsweet.lang.StringType + public interface MSVideoOptimalLayoutChanged { + } + /** + * Generated to type the string "MSVideoOptimalLayoutChanged". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSVideoOptimalLayoutChanged MSVideoOptimalLayoutChanged=null; + /** + * Generated to type the string "blocked". + * @exclude + */ + @jsweet.lang.StringType + public interface blocked { + } + /** + * Generated to type the string "blocked". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.blocked blocked=null; + /** + * Generated to type the string "upgradeneeded". + * @exclude + */ + @jsweet.lang.StringType + public interface upgradeneeded { + } + /** + * Generated to type the string "upgradeneeded". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.upgradeneeded upgradeneeded=null; + /** + * Generated to type the string "success". + * @exclude + */ + @jsweet.lang.StringType + public interface success { + } + /** + * Generated to type the string "success". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.success success=null; + /** + * Generated to type the string "complete". + * @exclude + */ + @jsweet.lang.StringType + public interface complete { + } + /** + * Generated to type the string "complete". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.complete complete=null; + /** + * Generated to type the string "MSCandidateWindowHide". + * @exclude + */ + @jsweet.lang.StringType + public interface MSCandidateWindowHide { + } + /** + * Generated to type the string "MSCandidateWindowHide". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSCandidateWindowHide MSCandidateWindowHide=null; + /** + * Generated to type the string "MSCandidateWindowShow". + * @exclude + */ + @jsweet.lang.StringType + public interface MSCandidateWindowShow { + } + /** + * Generated to type the string "MSCandidateWindowShow". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSCandidateWindowShow MSCandidateWindowShow=null; + /** + * Generated to type the string "MSCandidateWindowUpdate". + * @exclude + */ + @jsweet.lang.StringType + public interface MSCandidateWindowUpdate { + } + /** + * Generated to type the string "MSCandidateWindowUpdate". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSCandidateWindowUpdate MSCandidateWindowUpdate=null; + /** + * Generated to type the string "focusin". + * @exclude + */ + @jsweet.lang.StringType + public interface focusin { + } + /** + * Generated to type the string "focusin". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.focusin focusin=null; + /** + * Generated to type the string "focusout". + * @exclude + */ + @jsweet.lang.StringType + public interface focusout { + } + /** + * Generated to type the string "focusout". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.focusout focusout=null; + /** + * Generated to type the string "SVGAbort". + * @exclude + */ + @jsweet.lang.StringType + public interface SVGAbort { + } + /** + * Generated to type the string "SVGAbort". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.SVGAbort SVGAbort=null; + /** + * Generated to type the string "SVGError". + * @exclude + */ + @jsweet.lang.StringType + public interface SVGError { + } + /** + * Generated to type the string "SVGError". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.SVGError SVGError=null; + /** + * Generated to type the string "SVGUnload". + * @exclude + */ + @jsweet.lang.StringType + public interface SVGUnload { + } + /** + * Generated to type the string "SVGUnload". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.SVGUnload SVGUnload=null; + /** + * Generated to type the string "SVGZoom". + * @exclude + */ + @jsweet.lang.StringType + public interface SVGZoom { + } + /** + * Generated to type the string "SVGZoom". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.SVGZoom SVGZoom=null; + /** + * Generated to type the string "MSOrientationChange". + * @exclude + */ + @jsweet.lang.StringType + public interface MSOrientationChange { + } + /** + * Generated to type the string "MSOrientationChange". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.MSOrientationChange MSOrientationChange=null; + /** + * Generated to type the string "audioprocess". + * @exclude + */ + @jsweet.lang.StringType + public interface audioprocess { + } + /** + * Generated to type the string "audioprocess". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.audioprocess audioprocess=null; + /** + * Generated to type the string "enter". + * @exclude + */ + @jsweet.lang.StringType + public interface enter { + } + /** + * Generated to type the string "enter". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.enter enter=null; + /** + * Generated to type the string "exit". + * @exclude + */ + @jsweet.lang.StringType + public interface exit { + } + /** + * Generated to type the string "exit". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.exit exit=null; + /** + * Generated to type the string "close". + * @exclude + */ + @jsweet.lang.StringType + public interface close { + } + /** + * Generated to type the string "close". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.close close=null; + /** + * Generated to type the string "open". + * @exclude + */ + @jsweet.lang.StringType + public interface open { + } + /** + * Generated to type the string "open". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.open open=null; + /** + * Generated to type the string "compassneedscalibration". + * @exclude + */ + @jsweet.lang.StringType + public interface compassneedscalibration { + } + /** + * Generated to type the string "compassneedscalibration". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.compassneedscalibration compassneedscalibration=null; + /** + * Generated to type the string "devicemotion". + * @exclude + */ + @jsweet.lang.StringType + public interface devicemotion { + } + /** + * Generated to type the string "devicemotion". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.devicemotion devicemotion=null; + /** + * Generated to type the string "deviceorientation". + * @exclude + */ + @jsweet.lang.StringType + public interface deviceorientation { + } + /** + * Generated to type the string "deviceorientation". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.deviceorientation deviceorientation=null; + /** + * Generated to type the string "timeout". + * @exclude + */ + @jsweet.lang.StringType + public interface timeout { + } + /** + * Generated to type the string "timeout". + * @exclude + */ + @jsweet.lang.StringType + public static def.js.StringTypes.timeout timeout=null; +} + diff --git a/core-lib/es6/src/main/java/def/js/Symbol.java b/core-lib/es6/src/main/java/def/js/Symbol.java new file mode 100644 index 00000000..406fdef8 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Symbol.java @@ -0,0 +1,96 @@ +package def.js; +public class Symbol extends def.js.Object { + /** Returns a string representation of an object. */ + native public java.lang.String toString(); + /** Returns the primitive value of the specified object. */ + native public java.lang.Object valueOf(); + native public java.lang.String $get(Symbol toStringTag); + /** + * A reference to the prototype. + */ + public static Symbol prototype; + /** + * Returns a new unique Symbol value. + * @param description Description of the new Symbol object. + */ + native public static String applyStatic(java.lang.String description); + /** + * Returns a Symbol object from the global symbol registry matching the given key if found. + * Otherwise, returns a new symbol with this key. + * @param key key to search for. + */ + @jsweet.lang.Name("for") + native public static String For(java.lang.String key); + /** + * Returns a key from the global symbol registry matching the given Symbol if found. + * Otherwise, returns a undefined. + * @param sym Symbol to find the key for. + */ + native public static java.lang.String keyFor(String sym); + /** + * A method that determines if a constructor object recognizes an object as one of the + * constructor’s instances. Called by the semantics of the instanceof operator. + */ + public static String hasInstance; + /** + * A Boolean value that if true indicates that an object should flatten to its array elements + * by Array.prototype.concat. + */ + public static String isConcatSpreadable; + /** + * A method that returns the default iterator for an object. Called by the semantics of the + * for-of statement. + */ + public static String iterator; + /** + * A regular expression method that matches the regular expression against a string. Called + * by the String.prototype.match method. + */ + public static String match; + /** + * A regular expression method that replaces matched substrings of a string. Called by the + * String.prototype.replace method. + */ + public static String replace; + /** + * A regular expression method that returns the index within a string that matches the + * regular expression. Called by the String.prototype.search method. + */ + public static String search; + /** + * A function valued property that is the constructor function that is used to create + * derived objects. + */ + public static String species; + /** + * A regular expression method that splits a string at the indices that match the regular + * expression. Called by the String.prototype.split method. + */ + public static String split; + /** + * A method that converts an object to a corresponding primitive value.Called by the ToPrimitive + * abstract operation. + */ + public static String toPrimitive; + /** + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. + */ + public static String toStringTag; + /** + * An Object whose own property names are property names that are excluded from the with + * environment bindings of the associated objects. + */ + public static String unscopables; + /** + * Returns a new unique Symbol value. + * @param description Description of the new Symbol object. + */ + native public static String applyStatic(); + /** + * Returns a new unique Symbol value. + * @param description Description of the new Symbol object. + */ + native public static String applyStatic(double description); +} + diff --git a/core-lib/es6/src/main/java/def/js/SyntaxError.java b/core-lib/es6/src/main/java/def/js/SyntaxError.java new file mode 100644 index 00000000..8f74e58a --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/SyntaxError.java @@ -0,0 +1,9 @@ +package def.js; +public class SyntaxError extends Error { + public SyntaxError(java.lang.String message){} + native public static SyntaxError applyStatic(java.lang.String message); + public static SyntaxError prototype; + public SyntaxError(){} + native public static SyntaxError applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/TemplateStringsArray.java b/core-lib/es6/src/main/java/def/js/TemplateStringsArray.java new file mode 100644 index 00000000..f09b5209 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/TemplateStringsArray.java @@ -0,0 +1,6 @@ +package def.js; +@jsweet.lang.Interface +public abstract class TemplateStringsArray extends Array { + public java.lang.String[] raw; +} + diff --git a/core-lib/es6/src/main/java/def/js/TypeError.java b/core-lib/es6/src/main/java/def/js/TypeError.java new file mode 100644 index 00000000..7c672cb3 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/TypeError.java @@ -0,0 +1,9 @@ +package def.js; +public class TypeError extends Error { + public TypeError(java.lang.String message){} + native public static TypeError applyStatic(java.lang.String message); + public static TypeError prototype; + public TypeError(){} + native public static TypeError applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/TypedPropertyDescriptor.java b/core-lib/es6/src/main/java/def/js/TypedPropertyDescriptor.java new file mode 100644 index 00000000..ef604ee2 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/TypedPropertyDescriptor.java @@ -0,0 +1,17 @@ +package def.js; +@jsweet.lang.Interface +public abstract class TypedPropertyDescriptor extends def.js.Object { + @jsweet.lang.Optional + public java.lang.Boolean enumerable; + @jsweet.lang.Optional + public java.lang.Boolean configurable; + @jsweet.lang.Optional + public java.lang.Boolean writable; + @jsweet.lang.Optional + public T value; + @jsweet.lang.Optional + public java.util.function.Supplier get; + @jsweet.lang.Optional + public java.util.function.Consumer set; +} + diff --git a/core-lib/es6/src/main/java/def/js/URIError.java b/core-lib/es6/src/main/java/def/js/URIError.java new file mode 100644 index 00000000..c34ba7d5 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/URIError.java @@ -0,0 +1,9 @@ +package def.js; +public class URIError extends Error { + public URIError(java.lang.String message){} + native public static URIError applyStatic(java.lang.String message); + public static URIError prototype; + public URIError(){} + native public static URIError applyStatic(); +} + diff --git a/core-lib/es6/src/main/java/def/js/Uint16Array.java b/core-lib/es6/src/main/java/def/js/Uint16Array.java new file mode 100644 index 00000000..e3c40b76 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Uint16Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Uint16Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint16Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint16Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint16Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint16Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Uint16Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint16Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint16Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint16Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint16Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Uint16Array prototype; + public Uint16Array(double length){} + public Uint16Array(Uint16Array array){} + public Uint16Array(double[] array){} + public Uint16Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Uint16Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint16Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint16Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint16Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint16Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint16Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint16Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint16Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint16Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint16Array sort(); + /** + * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint16Array subarray(double begin); + public Uint16Array(ArrayBuffer buffer, double byteOffset){} + public Uint16Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint16Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Uint16Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Uint32Array.java b/core-lib/es6/src/main/java/def/js/Uint32Array.java new file mode 100644 index 00000000..5165a729 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Uint32Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Uint32Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint32Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint32Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint32Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint32Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Uint32Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint32Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint32Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint32Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint32Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Uint32Array prototype; + public Uint32Array(double length){} + public Uint32Array(Uint32Array array){} + public Uint32Array(double[] array){} + public Uint32Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Uint32Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint32Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint32Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint32Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint32Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint32Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint32Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint32Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint32Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint32Array sort(); + /** + * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint32Array subarray(double begin); + public Uint32Array(ArrayBuffer buffer, double byteOffset){} + public Uint32Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint32Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Uint32Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Uint8Array.java b/core-lib/es6/src/main/java/def/js/Uint8Array.java new file mode 100644 index 00000000..8af92698 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Uint8Array.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Uint8Array extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint8Array copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint8Array fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8Array filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8Array map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Uint8Array reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint8Array array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint8Array slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint8Array sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint8Array subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Uint8Array prototype; + public Uint8Array(double length){} + public Uint8Array(Uint8Array array){} + public Uint8Array(double[] array){} + public Uint8Array(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Uint8Array of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint8Array copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint8Array fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint8Array fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8Array filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8Array map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint8Array array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint8Array slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint8Array slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint8Array sort(); + /** + * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint8Array subarray(double begin); + public Uint8Array(ArrayBuffer buffer, double byteOffset){} + public Uint8Array(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8Array from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Uint8Array(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/Uint8ClampedArray.java b/core-lib/es6/src/main/java/def/js/Uint8ClampedArray.java new file mode 100644 index 00000000..983e580f --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/Uint8ClampedArray.java @@ -0,0 +1,475 @@ +package def.js; +import jsweet.util.function.Function4; +/** + * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. + * If the requested number of bytes could not be allocated an exception is raised. + */ +@jsweet.lang.SyntacticIterable +public class Uint8ClampedArray extends Iterable { + /** + * The size in bytes of each element in the array. + */ + public double BYTES_PER_ELEMENT; + /** + * The ArrayBuffer instance referenced by the array. + */ + public ArrayBuffer buffer; + /** + * The length in bytes of the array. + */ + public double byteLength; + /** + * The offset in bytes of the array. + */ + public double byteOffset; + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint8ClampedArray copyWithin(double target, double start, double end); + /** + * Returns an array of key, value pairs for every entry in the array + */ + native public IterableIterator> entries(); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint8ClampedArray fill(double value, double start, double end); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8ClampedArray filter(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate, java.lang.Object thisArg); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate, java.lang.Object thisArg); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn, java.lang.Object thisArg); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement, double fromIndex); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(java.lang.String separator); + /** + * Returns an list of keys in the array + */ + native public IterableIterator keys(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement, double fromIndex); + /** + * The length of the array. + */ + public double length; + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8ClampedArray map(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduce(Function4 callbackfn, U initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn, double initialValue); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public U reduceRight(Function4 callbackfn, U initialValue); + /** + * Reverses the elements in an Array. + */ + native public Uint8ClampedArray reverse(); + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + native public void set(double index, double value); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint8ClampedArray array, double offset); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint8ClampedArray slice(double start, double end); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn, java.lang.Object thisArg); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint8ClampedArray sort(java.util.function.BiFunction compareFn); + /** + * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint8ClampedArray subarray(double begin, double end); + /** + * Converts a number to a string by using the current locale. + */ + native public java.lang.String toLocaleString(); + /** + * Returns a string representation of an array. + */ + native public java.lang.String toString(); + /** + * Returns an list of values in the array + */ + native public IterableIterator values(); + native public java.lang.Double $get(double index); + public static Uint8ClampedArray prototype; + public Uint8ClampedArray(double length){} + public Uint8ClampedArray(Uint8ClampedArray array){} + public Uint8ClampedArray(double[] array){} + public Uint8ClampedArray(ArrayBuffer buffer, double byteOffset, double length){} + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + native public static Uint8ClampedArray of(double... items); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(ArrayLike arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + native public Uint8ClampedArray copyWithin(double target, double start); + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean every(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint8ClampedArray fill(double value, double start); + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + native public Uint8ClampedArray fill(double value); + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8ClampedArray filter(jsweet.util.function.TriFunction callbackfn); + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double find(jsweet.util.function.TriFunction,java.lang.Boolean> predicate); + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + native public double findIndex(java.util.function.Function predicate); + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public void forEach(jsweet.util.function.TriConsumer callbackfn); + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double indexOf(double searchElement); + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + native public java.lang.String join(); + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + native public double lastIndexOf(double searchElement); + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public Uint8ClampedArray map(jsweet.util.function.TriFunction callbackfn); + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + native public double reduce(Function4 callbackfn); + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + native public double reduceRight(Function4 callbackfn); + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + native public void set(Uint8ClampedArray array); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint8ClampedArray slice(double start); + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + native public Uint8ClampedArray slice(); + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + native public java.lang.Boolean some(jsweet.util.function.TriFunction callbackfn); + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + native public Uint8ClampedArray sort(); + /** + * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + native public Uint8ClampedArray subarray(double begin); + public Uint8ClampedArray(ArrayBuffer buffer, double byteOffset){} + public Uint8ClampedArray(ArrayBuffer buffer){} + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(ArrayLike arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(ArrayLike arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(Iterable arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(Iterable arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(Iterable arrayLike); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(Double[] arrayLike, java.util.function.BiFunction mapfn, java.lang.Object thisArg); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(Double[] arrayLike, java.util.function.BiFunction mapfn); + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + native public static Uint8ClampedArray from(Double[] arrayLike); + /** From Iterable, to allow foreach loop (do not use directly). */ + @jsweet.lang.Erased + native public java.util.Iterator iterator(); + protected Uint8ClampedArray(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/VBArray.java b/core-lib/es6/src/main/java/def/js/VBArray.java new file mode 100644 index 00000000..b30c64b4 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/VBArray.java @@ -0,0 +1,43 @@ +package def.js; +/** + * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions. + */ +public class VBArray extends def.js.Object { + /** + * Returns the number of dimensions (1-based). + */ + native public double dimensions(); + /** + * Takes an index for each dimension in the array, and returns the item at the corresponding location. + */ + native public T getItem(double dimension1Index, double... dimensionNIndexes); + /** + * Returns the smallest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + native public double lbound(double dimension); + /** + * Returns the largest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + native public double ubound(double dimension); + /** + * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions, + * each successive dimension is appended to the end of the array. + * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6] + */ + native public T[] toArray(); + public VBArray(java.lang.Object safeArray){} + /** + * Returns the smallest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + native public double lbound(); + /** + * Returns the largest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + native public double ubound(); + protected VBArray(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/VideoPlaybackQuality.java b/core-lib/es6/src/main/java/def/js/VideoPlaybackQuality.java new file mode 100644 index 00000000..787c340b --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/VideoPlaybackQuality.java @@ -0,0 +1,11 @@ +package def.js; +public class VideoPlaybackQuality extends def.js.Object { + public double corruptedVideoFrames; + public double creationTime; + public double droppedVideoFrames; + public double totalFrameDelay; + public double totalVideoFrames; + public static VideoPlaybackQuality prototype; + public VideoPlaybackQuality(){} +} + diff --git a/core-lib/es6/src/main/java/def/js/WScript.java b/core-lib/es6/src/main/java/def/js/WScript.java new file mode 100644 index 00000000..fce08955 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/WScript.java @@ -0,0 +1,125 @@ +package def.js; + +import def.dom.TextStreamReader; +import def.dom.TextStreamWriter; + +/** This is an automatically generated object type (see the source definition). */ +public class WScript extends def.js.Object { + /** + * Outputs text to either a message box (under WScript.exe) or the command console window followed by + * a newline (under CScript.exe). + */ + native public static void Echo(java.lang.Object s); + /** + * Exposes the write-only error output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + public static TextStreamWriter StdErr; + /** + * Exposes the write-only output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + public static TextStreamWriter StdOut; + public static Arguments Arguments; + /** + * The full path of the currently running script. + */ + public static java.lang.String ScriptFullName; + /** + * Forces the script to stop immediately, with an optional exit code. + */ + native public static double Quit(double exitCode); + /** + * The Windows Script Host build version number. + */ + public static double BuildVersion; + /** + * Fully qualified path of the host executable. + */ + public static java.lang.String FullName; + /** + * Gets/sets the script mode - interactive(true) or batch(false). + */ + public static java.lang.Boolean Interactive; + /** + * The name of the host executable (WScript.exe or CScript.exe). + */ + public static java.lang.String Name; + /** + * Path of the directory containing the host executable. + */ + public static java.lang.String Path; + /** + * The filename of the currently running script. + */ + public static java.lang.String ScriptName; + /** + * Exposes the read-only input stream for the current script. + * Can be accessed only while using CScript.exe. + */ + public static TextStreamReader StdIn; + /** + * Windows Script Host version + */ + public static java.lang.String Version; + /** + * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event. + */ + native public static void ConnectObject(java.lang.Object objEventSource, java.lang.String strPrefix); + /** + * Creates a COM object. + * @param strProgiID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + native public static java.lang.Object CreateObject(java.lang.String strProgID, java.lang.String strPrefix); + /** + * Disconnects a COM object from its event sources. + */ + native public static void DisconnectObject(java.lang.Object obj); + /** + * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. + * @param strPathname Fully qualified path to the file containing the object persisted to disk. + * For objects in memory, pass a zero-length string. + * @param strProgID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + native public static java.lang.Object GetObject(java.lang.String strPathname, java.lang.String strProgID, java.lang.String strPrefix); + /** + * Suspends script execution for a specified length of time, then continues execution. + * @param intTime Interval (in milliseconds) to suspend script execution. + */ + native public static void Sleep(double intTime); + /** This is an automatically generated object type (see the source definition). */ + @jsweet.lang.ObjectType + public static class Arguments extends def.js.Object { + public double length; + native public java.lang.String Item(double n); + } + /** + * Forces the script to stop immediately, with an optional exit code. + */ + native public static double Quit(); + /** + * Creates a COM object. + * @param strProgiID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + native public static java.lang.Object CreateObject(java.lang.String strProgID); + /** + * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. + * @param strPathname Fully qualified path to the file containing the object persisted to disk. + * For objects in memory, pass a zero-length string. + * @param strProgID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + native public static java.lang.Object GetObject(java.lang.String strPathname, java.lang.String strProgID); + /** + * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. + * @param strPathname Fully qualified path to the file containing the object persisted to disk. + * For objects in memory, pass a zero-length string. + * @param strProgID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + native public static java.lang.Object GetObject(java.lang.String strPathname); +} + diff --git a/core-lib/es6/src/main/java/def/js/WeakMap.java b/core-lib/es6/src/main/java/def/js/WeakMap.java new file mode 100644 index 00000000..9ace4f77 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/WeakMap.java @@ -0,0 +1,14 @@ +package def.js; +public class WeakMap extends def.js.Object { + native public void clear(); + native public java.lang.Boolean delete(K key); + native public V get(K key); + native public java.lang.Boolean has(K key); + native public WeakMap set(K key, V value); + native public java.lang.String $get(Symbol toStringTag); + public WeakMap(){} + public WeakMap(Iterable> iterable){} + public static WeakMap prototype; + native public WeakMap set(K key); +} + diff --git a/core-lib/es6/src/main/java/def/js/WeakSet.java b/core-lib/es6/src/main/java/def/js/WeakSet.java new file mode 100644 index 00000000..f7391a8c --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/WeakSet.java @@ -0,0 +1,12 @@ +package def.js; +public class WeakSet extends def.js.Object { + native public WeakSet add(T value); + native public void clear(); + native public java.lang.Boolean delete(T value); + native public java.lang.Boolean has(T value); + native public java.lang.String $get(Symbol toStringTag); + public WeakSet(){} + public WeakSet(Iterable iterable){} + public static WeakSet prototype; +} + diff --git a/core-lib/es6/src/main/java/def/js/package-info.java b/core-lib/es6/src/main/java/def/js/package-info.java new file mode 100644 index 00000000..c774367a --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/package-info.java @@ -0,0 +1,3 @@ +/** This package contains the def.js library (source: Definitely Typed). */ +@jsweet.lang.Root(dependencies={}, mixins={}) +package def.js; diff --git a/core-lib/es6/src/main/java/def/js/reflect/package-info.java b/core-lib/es6/src/main/java/def/js/reflect/package-info.java new file mode 100644 index 00000000..f739fe04 --- /dev/null +++ b/core-lib/es6/src/main/java/def/js/reflect/package-info.java @@ -0,0 +1,3 @@ +/** (source: Definitely Typed) */ +@jsweet.lang.Name("Reflect") +package def.js.reflect; diff --git a/core-lib/es6/src/main/java/jsweet/util/function/Function4.java b/core-lib/es6/src/main/java/jsweet/util/function/Function4.java new file mode 100644 index 00000000..9b600ce2 --- /dev/null +++ b/core-lib/es6/src/main/java/jsweet/util/function/Function4.java @@ -0,0 +1,7 @@ +package jsweet.util.function; +/** This functional interface was automatically generated for allowing lambdas taking 4 parameters and returning a result. */ +@java.lang.FunctionalInterface() +public interface Function4 { + public R apply(T1 p1, T2 p2, T3 p3, T4 p4); +} + diff --git a/core-lib/es6/src/main/java/jsweet/util/function/package-info.java b/core-lib/es6/src/main/java/jsweet/util/function/package-info.java new file mode 100644 index 00000000..30dfe222 --- /dev/null +++ b/core-lib/es6/src/main/java/jsweet/util/function/package-info.java @@ -0,0 +1,2 @@ +/** (source: Definitely Typed) */ +package jsweet.util.function; diff --git a/core-lib/es6/src/main/java/jsweet/util/package-info.java b/core-lib/es6/src/main/java/jsweet/util/package-info.java new file mode 100644 index 00000000..49db241b --- /dev/null +++ b/core-lib/es6/src/main/java/jsweet/util/package-info.java @@ -0,0 +1,2 @@ +/** (source: Definitely Typed) */ +package jsweet.util; diff --git a/core-lib/es6/src/main/java/jsweet/util/union/Union3.java b/core-lib/es6/src/main/java/jsweet/util/union/Union3.java new file mode 100644 index 00000000..3aa94517 --- /dev/null +++ b/core-lib/es6/src/main/java/jsweet/util/union/Union3.java @@ -0,0 +1,5 @@ +package jsweet.util.union; +/** This union type was automatically generated in order to accept 3 types. @see Union */ +public interface Union3 extends Union { +} + diff --git a/core-lib/es6/src/main/java/jsweet/util/union/package-info.java b/core-lib/es6/src/main/java/jsweet/util/union/package-info.java new file mode 100644 index 00000000..f6f82862 --- /dev/null +++ b/core-lib/es6/src/main/java/jsweet/util/union/package-info.java @@ -0,0 +1,2 @@ +/** (source: Definitely Typed) */ +package jsweet.util.union; diff --git a/core-lib/es6/src/main/resources/META-INF/candy-metadata.json b/core-lib/es6/src/main/resources/META-INF/candy-metadata.json new file mode 100644 index 00000000..0eb9f1eb --- /dev/null +++ b/core-lib/es6/src/main/resources/META-INF/candy-metadata.json @@ -0,0 +1,3 @@ +{ + "transpilerVersion": "${jsweet.transpiler.version}" +} \ No newline at end of file