| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 848997d6c88f22379c2ac5d9a3375dc933c78292..b7bb996f10b20d486a17533078247d7bdf045e2d 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -11187,7 +11187,11 @@ abstract class RangeInputElementBase implements InputElementBase {
|
| /**
|
| * A date and time (year, month, day, hour, minute, second, fraction of a
|
| * second) with the time zone set to UTC.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| abstract class DateTimeInputElement implements RangeInputElementBase {
|
| factory DateTimeInputElement() => new InputElement(type: 'datetime');
|
|
|
| @@ -11199,11 +11203,20 @@ abstract class DateTimeInputElement implements RangeInputElementBase {
|
|
|
| /// @domName HTMLInputElement.required
|
| bool required;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'datetime')).type == 'datetime';
|
| + }
|
| }
|
|
|
| /**
|
| * A date (year, month, day) with no time zone.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| abstract class DateInputElement implements RangeInputElementBase {
|
| factory DateInputElement() => new InputElement(type: 'date');
|
|
|
| @@ -11215,11 +11228,20 @@ abstract class DateInputElement implements RangeInputElementBase {
|
|
|
| /// @domName HTMLInputElement.required
|
| bool required;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'date')).type == 'date';
|
| + }
|
| }
|
|
|
| /**
|
| * A date consisting of a year and a month with no time zone.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| abstract class MonthInputElement implements RangeInputElementBase {
|
| factory MonthInputElement() => new InputElement(type: 'month');
|
|
|
| @@ -11231,11 +11253,20 @@ abstract class MonthInputElement implements RangeInputElementBase {
|
|
|
| /// @domName HTMLInputElement.required
|
| bool required;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'month')).type == 'month';
|
| + }
|
| }
|
|
|
| /**
|
| * A date consisting of a week-year number and a week number with no time zone.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| abstract class WeekInputElement implements RangeInputElementBase {
|
| factory WeekInputElement() => new InputElement(type: 'week');
|
|
|
| @@ -11247,11 +11278,20 @@ abstract class WeekInputElement implements RangeInputElementBase {
|
|
|
| /// @domName HTMLInputElement.required
|
| bool required;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'week')).type == 'week';
|
| + }
|
| }
|
|
|
| /**
|
| * A time (hour, minute, seconds, fractional seconds) with no time zone.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@Experimental()
|
| abstract class TimeInputElement implements RangeInputElementBase {
|
| factory TimeInputElement() => new InputElement(type: 'time');
|
|
|
| @@ -11263,12 +11303,21 @@ abstract class TimeInputElement implements RangeInputElementBase {
|
|
|
| /// @domName HTMLInputElement.required
|
| bool required;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'time')).type == 'time';
|
| + }
|
| }
|
|
|
| /**
|
| * A date and time (year, month, day, hour, minute, second, fraction of a
|
| * second) with no time zone.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| abstract class LocalDateTimeInputElement implements RangeInputElementBase {
|
| factory LocalDateTimeInputElement() =>
|
| new InputElement(type: 'datetime-local');
|
| @@ -11278,6 +11327,11 @@ abstract class LocalDateTimeInputElement implements RangeInputElementBase {
|
|
|
| /// @domName HTMLInputElement.required
|
| bool required;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'datetime-local')).type == 'datetime-local';
|
| + }
|
| }
|
|
|
| /**
|
| @@ -11299,9 +11353,19 @@ abstract class NumberInputElement implements RangeInputElementBase {
|
| /**
|
| * Similar to [NumberInputElement] but the browser may provide more optimal
|
| * styling (such as a slider control).
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.IE, '10')
|
| +@Experimental()
|
| abstract class RangeInputElement implements RangeInputElementBase {
|
| factory RangeInputElement() => new InputElement(type: 'range');
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported() {
|
| + return (new InputElement(type: 'range')).type == 'range';
|
| + }
|
| }
|
|
|
| /**
|
|
|