Skip to content

Commit

Permalink
Deprecate all generated and handmade elemental classes
Browse files Browse the repository at this point in the history
Change-Id: I1c50c64fb18c8f3b4e9a51cf2434b37a6ded08bd
  • Loading branch information
niloc132 committed Apr 9, 2020
1 parent f236a69 commit 58b87c5
Show file tree
Hide file tree
Showing 106 changed files with 117 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elemental/idl/css/generate-style.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def GenerateStyleBase(input_stream, output_intf_stream, output_impl_stream):
/**
* $CLASS_JAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {
$!MEMBERS
""")
Expand All @@ -77,6 +78,7 @@ def GenerateStyleBase(input_stream, output_intf_stream, output_impl_stream):
import java.util.Date;
@Deprecated
public class $ID$EXTENDS $IMPLEMENTS {
protected $ID() {}
$!MEMBERS
Expand Down Expand Up @@ -114,7 +116,7 @@ def GenerateStyleBase(input_stream, output_intf_stream, output_impl_stream):
js_prop = "this." + js_prop

if output_mode == 'enum':
wintf('\npublic interface %s {\n' % method_suffix)
wintf('\n@Deprecated\npublic interface %s {\n' % method_suffix)
for p in params:
wintf(CONST_PREFIX + PropToConstant(p) + ' = "' + p + '";\n')
wintf('}\n\n')
Expand Down
1 change: 1 addition & 0 deletions elemental/idl/templates/java_impl.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ import elemental.html.*;
/**
* $CLASS_JAVADOC
*/
@Deprecated
public class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS}
1 change: 1 addition & 0 deletions elemental/idl/templates/java_interface.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ import java.util.Date;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {
$!MEMBERS}
3 changes: 3 additions & 0 deletions elemental/idl/templates/java_interface_Document.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ import java.util.Date;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {

/**
* Contains the set of standard values used with {@link #createEvent}.
*/
@Deprecated
public interface Events {
public static final String CUSTOM = "CustomEvent";
public static final String KEYBOARD = "KeyboardEvent";
Expand All @@ -56,6 +58,7 @@ public interface Events {
/**
* Contains the set of standard values returned by {@link #readyState}.
*/
@Deprecated
public interface ReadyState {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/idl/templates/java_interface_Event.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import java.util.Date;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {
public static final String CLICK = "click";
public static final String CONTEXTMENU = "contextmenu";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ import java.util.Date;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {
/**
* Defines the standard key locations returned by {@link #getKeyLocation}.
*/
@Deprecated
public interface KeyLocation {

/**
Expand Down Expand Up @@ -75,6 +77,7 @@ public interface KeyLocation {
*
* @see "http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/events/keycodes.js"
*/
@Deprecated
public interface KeyCode {
public static final int BACKSPACE = 8;
public static final int TAB = 9;
Expand Down Expand Up @@ -185,6 +188,7 @@ public interface KeyCode {
* by {@link #getKeyboardIdentifier} when the key does not have a direct
* unicode mapping.
*/
@Deprecated
public interface KeyName {

/** The Accept (Commit, OK) key */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ import java.util.Date;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {
/**
* Contains the set of standard values returned by {@link #button}.
*/
@Deprecated
public interface Button {
public static final short PRIMARY = 0;
public static final short AUXILIARY = 1;
Expand Down
1 change: 1 addition & 0 deletions elemental/idl/templates/java_interface_Window.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import java.util.Date;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $ID$EXTENDS {
void clearOpener();
$!MEMBERS}
1 change: 1 addition & 0 deletions elemental/idl/templates/javacallback.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import elemental.html.*;
/**
* $CLASSJAVADOC
*/
@Deprecated
public interface $NAME {
$TYPE on$NAME($PARAMS);
}
1 change: 1 addition & 0 deletions elemental/idl/templates/jso_impl.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import elemental.js.stylesheets.*;

import java.util.Date;

@Deprecated
public class $ID$EXTENDS $IMPLEMENTS {
protected $ID() {}
$!MEMBERS}
1 change: 1 addition & 0 deletions elemental/idl/templates/jso_impl_Document.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import elemental.svg.*;

import java.util.Date;

@Deprecated
public class $ID$EXTENDS $IMPLEMENTS {
protected $ID() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import java.util.Date;
* may implement a given interface, we hoist all of the explicit
* mixin classes into a base JSO used by all of elemental.
*/
@Deprecated
public class JsElementalMixinBase $EXTENDS $IMPLEMENTS {
protected JsElementalMixinBase() {}
$!MEMBERS
Expand Down
1 change: 1 addition & 0 deletions elemental/idl/templates/jso_impl_Window.darttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import elemental.js.xml.*;

import java.util.Date;

@Deprecated
public class $ID$EXTENDS $IMPLEMENTS {
protected $ID() {}

Expand Down
2 changes: 2 additions & 0 deletions elemental/src/elemental/client/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* Entry-point for getting the access to browser globals.
*/
@Deprecated
public class Browser {

/**
Expand All @@ -31,6 +32,7 @@ public class Browser {
*
* TODO(knorton): Add the gwt.xml file that enables permutations.
*/
@Deprecated
public interface Info {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/events/EventRemover.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package elemental.events;

@Deprecated
public interface EventRemover {
void remove();
}
2 changes: 2 additions & 0 deletions elemental/src/elemental/js/JsBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/**
* JavaScript native implementation of {@link elemental.client.Browser}.
*/
@Deprecated
public class JsBrowser {
/**
* A {@link Browser.Info} implementation for when the browser is known to be
Expand Down Expand Up @@ -74,6 +75,7 @@ public boolean isWebKit() {
* A {@link Browser.Info} implementation for when the browser is known to be
* WebKit at compile time.
*/
@Deprecated
@SuppressWarnings("unused")
private static class InfoWhenKnownWebKit extends InfoWhenUnknown {
@Override
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* Client-side implementation of JsonArray.
*/
@Deprecated
final public class JsJsonArray extends JsJsonValue
implements JsonArray {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonBoolean.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Client-side 'low overhead' JSO implementation using extension method
* technique.
*/
@Deprecated
final public class JsJsonBoolean extends JsJsonValue
implements JsonBoolean {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/**
* JSNI based implementation of JsonFactory.
*/
@Deprecated
public class JsJsonFactory implements JsonFactory {

private static native <T extends JsonValue> T parse0(String jsonString) /*-{
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonNull.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Client-side implementation of JsonNull as "extension methods" on an actual
* null.
*/
@Deprecated
final public class JsJsonNull extends JsJsonValue
implements JsonNull {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Client-side 'low overhead' JSO implementation using extension method
* technique.
*/
@Deprecated
final public class JsJsonNumber extends JsJsonValue
implements JsonNumber {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* Client-side implementation of JsonObject interface.
*/
@Deprecated
final public class JsJsonObject extends JsJsonValue
implements JsonObject {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonString.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Client-side 'zero overhead' JSO implementation using extension method
* technique.
*/
@Deprecated
final public class JsJsonString extends JsJsonValue
implements JsonString {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/json/JsJsonValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/**
* JSO backed implementation of JsonValue.
*/
@Deprecated
public class JsJsonValue extends JavaScriptObject implements JsonValue {

static native JsonValue box(JsonValue value) /*-{
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsArrayOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/**
* JavaScript native implementation of {@link ArrayOf}.
*/
@Deprecated
public final class JsArrayOf<T> extends JavaScriptObject implements ArrayOf<T> {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsArrayOfBoolean.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/**
* JavaScript native implementation of {@link ArrayOfBoolean}.
*/
@Deprecated
public final class JsArrayOfBoolean extends JsArrayBoolean implements ArrayOfBoolean {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsArrayOfInt.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/**
* JavaScript implementation of {@link ArrayOfInt}.
*/
@Deprecated
public final class JsArrayOfInt extends JsArrayInteger implements ArrayOfInt {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsArrayOfNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/**
* JavaScript native implementation of {@link ArrayOfNumber}.
*/
@Deprecated
public final class JsArrayOfNumber extends JsArrayNumber implements ArrayOfNumber {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsArrayOfString.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/**
* JavaScript native implementation of {@link ArrayOfString}.
*/
@Deprecated
public final class JsArrayOfString extends JsArrayString implements ArrayOfString {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsElementalBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Indexable, Settable, Mappable.
*/
// TODO (cromwellian) add generic when JSO bug in gwt-dev fixed
@Deprecated
public class JsElementalBase extends JavaScriptObject implements Mappable,
Indexable, IndexableInt, IndexableNumber, Settable, SettableInt, SettableNumber {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsGlobals.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* A utility class for accessing global functions and values in an ECMAScript
* context.
*/
@Deprecated
public class JsGlobals {
/**
* Decodes an encoded URI to a URI string.
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsIndexable.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/**
*/
// TODO (cromwellian) add generic when JSO bug in gwt-dev fixed
@Deprecated
public class JsIndexable extends JsElementalBase implements Indexable {
protected JsIndexable() {}
}
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsMapFromIntTo.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* JavaScript native implementation of {@link MapFromIntTo}.
*/
@Deprecated
public final class JsMapFromIntTo<V> extends JavaScriptObject implements MapFromIntTo<V> {

/**
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsMapFromIntToString.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* JavaScript native implementation of {@link MapFromIntToString}.
*/
@Deprecated
public final class JsMapFromIntToString extends JavaScriptObject implements MapFromIntToString {
/**
* Create a new empty map instance.
Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsMapFromStringTo.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* JavaScript native implementation of {@link MapFromStringTo}.
*/
@Deprecated
public final class JsMapFromStringTo<V> extends JavaScriptObject implements MapFromStringTo<V> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* A JavaScript native implementation of {@link MapFromStringToBoolean}.
*/
@Deprecated
public final class JsMapFromStringToBoolean extends JavaScriptObject
implements MapFromStringToBoolean {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsMapFromStringToInt.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* JavaScript native implementation of {@link MapFromStringToInt}.
*/
@Deprecated
public final class JsMapFromStringToInt extends JavaScriptObject implements MapFromStringToInt {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* A JavaScript native implementation of {@link MapFromStringToNumber}.
*/
@Deprecated
public final class JsMapFromStringToNumber extends JavaScriptObject
implements MapFromStringToNumber {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* A JavaScript native implementation of {@link MapFromStringToString}.
*/
@Deprecated
public final class JsMapFromStringToString extends JavaScriptObject
implements MapFromStringToString {

Expand Down
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/JsMappable.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/**
*/
// TODO (cromwellian) add generic when JSO bug in gwt-dev fixed
@Deprecated
public class JsMappable extends JsElementalBase implements Mappable {
protected JsMappable() {}
}
1 change: 1 addition & 0 deletions elemental/src/elemental/js/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* A static API to the browser's JSON object.
* TODO(knorton) : Remove this when generated DOM bindings are submitted.
*/
@Deprecated
public class Json {
/**
* Parse a string containing JSON into a {@link JavaScriptObject}.
Expand Down
Loading

0 comments on commit 58b87c5

Please sign in to comment.