Index: tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate |
index 45da9bc6cf10bca8ead1f65790604525b06ff158..bb884149b3d5efe6f558d600956514dace5f8aee 100644 |
--- a/tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate |
@@ -4,7 +4,7 @@ |
part of $LIBRARYNAME; |
-/// @domName $DOMNAME |
+@DomName("$DOMNAME") |
class $CLASSNAME$EXTENDS implements |
HiddenInputElement, |
SearchInputElement, |
@@ -30,7 +30,7 @@ class $CLASSNAME$EXTENDS implements |
ButtonInputElement |
$NATIVESPEC { |
- ///@docsEditable true |
+ /// @docsEditable true |
factory InputElement({String type}) { |
var e = document.$dom_createElement("input"); |
if (type != null) { |
@@ -53,40 +53,40 @@ $!MEMBERS |
* Exposes the functionality common between all InputElement types. |
*/ |
abstract class InputElementBase implements Element { |
- /// @domName HTMLInputElement.autofocus |
+ @DomName("HTMLInputElement.autofocus") |
bool autofocus; |
- /// @domName HTMLInputElement.disabled |
+ @DomName("HTMLInputElement.disabled") |
bool disabled; |
- /// @domName HTMLInputElement.incremental |
+ @DomName("HTMLInputElement.incremental") |
bool incremental; |
- /// @domName HTMLInputElement.indeterminate |
+ @DomName("HTMLInputElement.indeterminate") |
bool indeterminate; |
- /// @domName HTMLInputElement.labels |
+ @DomName("HTMLInputElement.labels") |
List<Node> get labels; |
- /// @domName HTMLInputElement.name |
+ @DomName("HTMLInputElement.name") |
String name; |
- /// @domName HTMLInputElement.validationMessage |
+ @DomName("HTMLInputElement.validationMessage") |
String get validationMessage; |
- /// @domName HTMLInputElement.validity |
+ @DomName("HTMLInputElement.validity") |
ValidityState get validity; |
- /// @domName HTMLInputElement.value |
+ @DomName("HTMLInputElement.value") |
String value; |
- /// @domName HTMLInputElement.willValidate |
+ @DomName("HTMLInputElement.willValidate") |
bool get willValidate; |
- /// @domName HTMLInputElement.checkValidity |
+ @DomName("HTMLInputElement.checkValidity") |
bool checkValidity(); |
- /// @domName HTMLInputElement.setCustomValidity |
+ @DomName("HTMLInputElement.setCustomValidity") |
void setCustomValidity(String error); |
} |
@@ -102,40 +102,40 @@ abstract class HiddenInputElement implements Element { |
* Base interface for all inputs which involve text editing. |
*/ |
abstract class TextInputElementBase implements InputElementBase { |
- /// @domName HTMLInputElement.autocomplete |
+ @DomName("HTMLInputElement.autocomplete") |
String autocomplete; |
- /// @domName HTMLInputElement.maxLength |
+ @DomName("HTMLInputElement.maxLength") |
int maxLength; |
- /// @domName HTMLInputElement.pattern |
+ @DomName("HTMLInputElement.pattern") |
String pattern; |
- /// @domName HTMLInputElement.placeholder |
+ @DomName("HTMLInputElement.placeholder") |
String placeholder; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
- /// @domName HTMLInputElement.size |
+ @DomName("HTMLInputElement.size") |
int size; |
- /// @domName HTMLInputElement.select |
+ @DomName("HTMLInputElement.select") |
void select(); |
- /// @domName HTMLInputElement.selectionDirection |
+ @DomName("HTMLInputElement.selectionDirection") |
String selectionDirection; |
- /// @domName HTMLInputElement.selectionEnd |
+ @DomName("HTMLInputElement.selectionEnd") |
int selectionEnd; |
- /// @domName HTMLInputElement.selectionStart |
+ @DomName("HTMLInputElement.selectionStart") |
int selectionStart; |
- /// @domName HTMLInputElement.setSelectionRange |
+ @DomName("HTMLInputElement.setSelectionRange") |
void setSelectionRange(int start, int end, [String direction]); |
} |
@@ -152,10 +152,10 @@ abstract class TextInputElementBase implements InputElementBase { |
abstract class SearchInputElement implements TextInputElementBase { |
factory SearchInputElement() => new InputElement(type: 'search'); |
- /// @domName HTMLInputElement.dirName; |
+ @DomName("HTMLInputElement.dirName") |
String dirName; |
- /// @domName HTMLInputElement.list; |
+ @DomName("HTMLInputElement.list") |
Element get list; |
/// Returns true if this input type is supported on the current platform. |
@@ -170,10 +170,10 @@ abstract class SearchInputElement implements TextInputElementBase { |
abstract class TextInputElement implements TextInputElementBase { |
factory TextInputElement() => new InputElement(type: 'text'); |
- /// @domName HTMLInputElement.dirName; |
+ @DomName("HTMLInputElement.dirName") |
String dirName; |
- /// @domName HTMLInputElement.list; |
+ @DomName("HTMLInputElement.list") |
Element get list; |
} |
@@ -189,7 +189,7 @@ abstract class TextInputElement implements TextInputElementBase { |
abstract class UrlInputElement implements TextInputElementBase { |
factory UrlInputElement() => new InputElement(type: 'url'); |
- /// @domName HTMLInputElement.list; |
+ @DomName("HTMLInputElement.list") |
Element get list; |
/// Returns true if this input type is supported on the current platform. |
@@ -213,7 +213,7 @@ abstract class UrlInputElement implements TextInputElementBase { |
abstract class TelephoneInputElement implements TextInputElementBase { |
factory TelephoneInputElement() => new InputElement(type: 'tel'); |
- /// @domName HTMLInputElement.list; |
+ @DomName("HTMLInputElement.list") |
Element get list; |
/// Returns true if this input type is supported on the current platform. |
@@ -234,34 +234,34 @@ abstract class TelephoneInputElement implements TextInputElementBase { |
abstract class EmailInputElement implements TextInputElementBase { |
factory EmailInputElement() => new InputElement(type: 'email'); |
- /// @domName HTMLInputElement.autocomplete |
+ @DomName("HTMLInputElement.autocomplete") |
String autocomplete; |
- /// @domName HTMLInputElement.autofocus |
+ @DomName("HTMLInputElement.autofocus") |
bool autofocus; |
- /// @domName HTMLInputElement.list; |
+ @DomName("HTMLInputElement.list") |
Element get list; |
- /// @domName HTMLInputElement.maxLength |
+ @DomName("HTMLInputElement.maxLength") |
int maxLength; |
- /// @domName HTMLInputElement.multiple; |
+ @DomName("HTMLInputElement.multiple") |
bool multiple; |
- /// @domName HTMLInputElement.pattern |
+ @DomName("HTMLInputElement.pattern") |
String pattern; |
- /// @domName HTMLInputElement.placeholder |
+ @DomName("HTMLInputElement.placeholder") |
String placeholder; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
- /// @domName HTMLInputElement.size |
+ @DomName("HTMLInputElement.size") |
int size; |
/// Returns true if this input type is supported on the current platform. |
@@ -282,25 +282,25 @@ abstract class PasswordInputElement implements TextInputElementBase { |
*/ |
abstract class RangeInputElementBase implements InputElementBase { |
- /// @domName HTMLInputElement.list |
+ @DomName("HTMLInputElement.list") |
Element get list; |
- /// @domName HTMLInputElement.max |
+ @DomName("HTMLInputElement.max") |
String max; |
- /// @domName HTMLInputElement.min |
+ @DomName("HTMLInputElement.min") |
String min; |
- /// @domName HTMLInputElement.step |
+ @DomName("HTMLInputElement.step") |
String step; |
- /// @domName HTMLInputElement.valueAsNumber |
+ @DomName("HTMLInputElement.valueAsNumber") |
num valueAsNumber; |
- /// @domName HTMLInputElement.stepDown |
+ @DomName("HTMLInputElement.stepDown") |
void stepDown([int n]); |
- /// @domName HTMLInputElement.stepUp |
+ @DomName("HTMLInputElement.stepUp") |
void stepUp([int n]); |
} |
@@ -315,13 +315,13 @@ abstract class RangeInputElementBase implements InputElementBase { |
abstract class DateTimeInputElement implements RangeInputElementBase { |
factory DateTimeInputElement() => new InputElement(type: 'datetime'); |
- /// @domName HTMLInputElement.valueAsDate |
+ @DomName("HTMLInputElement.valueAsDate") |
Date valueAsDate; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -340,13 +340,13 @@ abstract class DateTimeInputElement implements RangeInputElementBase { |
abstract class DateInputElement implements RangeInputElementBase { |
factory DateInputElement() => new InputElement(type: 'date'); |
- /// @domName HTMLInputElement.valueAsDate |
+ @DomName("HTMLInputElement.valueAsDate") |
Date valueAsDate; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -365,13 +365,13 @@ abstract class DateInputElement implements RangeInputElementBase { |
abstract class MonthInputElement implements RangeInputElementBase { |
factory MonthInputElement() => new InputElement(type: 'month'); |
- /// @domName HTMLInputElement.valueAsDate |
+ @DomName("HTMLInputElement.valueAsDate") |
Date valueAsDate; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -390,13 +390,13 @@ abstract class MonthInputElement implements RangeInputElementBase { |
abstract class WeekInputElement implements RangeInputElementBase { |
factory WeekInputElement() => new InputElement(type: 'week'); |
- /// @domName HTMLInputElement.valueAsDate |
+ @DomName("HTMLInputElement.valueAsDate") |
Date valueAsDate; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -415,13 +415,13 @@ abstract class WeekInputElement implements RangeInputElementBase { |
abstract class TimeInputElement implements RangeInputElementBase { |
factory TimeInputElement() => new InputElement(type: 'time'); |
- /// @domName HTMLInputElement.valueAsDate |
+ @DomName("HTMLInputElement.valueAsDate") |
Date valueAsDate; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -442,10 +442,10 @@ abstract class LocalDateTimeInputElement implements RangeInputElementBase { |
factory LocalDateTimeInputElement() => |
new InputElement(type: 'datetime-local'); |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -464,13 +464,13 @@ abstract class LocalDateTimeInputElement implements RangeInputElementBase { |
abstract class NumberInputElement implements RangeInputElementBase { |
factory NumberInputElement() => new InputElement(type: 'number'); |
- /// @domName HTMLInputElement.placeholder |
+ @DomName("HTMLInputElement.placeholder") |
String placeholder; |
- /// @domName HTMLInputElement.readOnly |
+ @DomName("HTMLInputElement.readOnly") |
bool readOnly; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
/// Returns true if this input type is supported on the current platform. |
@@ -506,10 +506,10 @@ abstract class RangeInputElement implements RangeInputElementBase { |
abstract class CheckboxInputElement implements InputElementBase { |
factory CheckboxInputElement() => new InputElement(type: 'checkbox'); |
- /// @domName HTMLInputElement.checked |
+ @DomName("HTMLInputElement.checked") |
bool checked; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
} |
@@ -528,10 +528,10 @@ abstract class CheckboxInputElement implements InputElementBase { |
abstract class RadioButtonInputElement implements InputElementBase { |
factory RadioButtonInputElement() => new InputElement(type: 'radio'); |
- /// @domName HTMLInputElement.checked |
+ @DomName("HTMLInputElement.checked") |
bool checked; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
} |
@@ -541,16 +541,16 @@ abstract class RadioButtonInputElement implements InputElementBase { |
abstract class FileUploadInputElement implements InputElementBase { |
factory FileUploadInputElement() => new InputElement(type: 'file'); |
- /// @domName HTMLInputElement.accept |
+ @DomName("HTMLInputElement.accept") |
String accept; |
- /// @domName HTMLInputElement.multiple |
+ @DomName("HTMLInputElement.multiple") |
bool multiple; |
- /// @domName HTMLInputElement.required |
+ @DomName("HTMLInputElement.required") |
bool required; |
- /// @domName HTMLInputElement.files |
+ @DomName("HTMLInputElement.files") |
List<File> files; |
} |
@@ -560,19 +560,19 @@ abstract class FileUploadInputElement implements InputElementBase { |
abstract class SubmitButtonInputElement implements InputElementBase { |
factory SubmitButtonInputElement() => new InputElement(type: 'submit'); |
- /// @domName HTMLInputElement.formAction |
+ @DomName("HTMLInputElement.formAction") |
String formAction; |
- /// @domName HTMLInputElement.formEnctype |
+ @DomName("HTMLInputElement.formEnctype") |
String formEnctype; |
- /// @domName HTMLInputElement.formMethod |
+ @DomName("HTMLInputElement.formMethod") |
String formMethod; |
- /// @domName HTMLInputElement.formNoValidate |
+ @DomName("HTMLInputElement.formNoValidate") |
bool formNoValidate; |
- /// @domName HTMLInputElement.formTarget |
+ @DomName("HTMLInputElement.formTarget") |
String formTarget; |
} |
@@ -583,31 +583,31 @@ abstract class SubmitButtonInputElement implements InputElementBase { |
abstract class ImageButtonInputElement implements InputElementBase { |
factory ImageButtonInputElement() => new InputElement(type: 'image'); |
- /// @domName HTMLInputElement.alt |
+ @DomName("HTMLInputElement.alt") |
String alt; |
- /// @domName HTMLInputElement.formAction |
+ @DomName("HTMLInputElement.formAction") |
String formAction; |
- /// @domName HTMLInputElement.formEnctype |
+ @DomName("HTMLInputElement.formEnctype") |
String formEnctype; |
- /// @domName HTMLInputElement.formMethod |
+ @DomName("HTMLInputElement.formMethod") |
String formMethod; |
- /// @domName HTMLInputElement.formNoValidate |
+ @DomName("HTMLInputElement.formNoValidate") |
bool formNoValidate; |
- /// @domName HTMLInputElement.formTarget |
+ @DomName("HTMLInputElement.formTarget") |
String formTarget; |
- /// @domName HTMLInputElement.height |
+ @DomName("HTMLInputElement.height") |
int height; |
- /// @domName HTMLInputElement.src |
+ @DomName("HTMLInputElement.src") |
String src; |
- /// @domName HTMLInputElement.width |
+ @DomName("HTMLInputElement.width") |
int width; |
} |