Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: lib/src/html5_setters.g.dart

Issue 11315020: Add attribute information table so we generate correct setters. (Closed) Base URL: https://github.com/dart-lang/dart-web-components.git@master
Patch Set: better todo comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/emitters.dart ('k') | lib/src/html5_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/html5_setters.g.dart
diff --git a/lib/src/html5_setters.g.dart b/lib/src/html5_setters.g.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cfeab20f86e810f5f10094ac900a5d4e19f77676
--- /dev/null
+++ b/lib/src/html5_setters.g.dart
@@ -0,0 +1,514 @@
+// This file is autogenerated by build/gen_html_setters.sh. Do not edit.
+library html5_setters;
+var htmlElementFields = const {
+ 'AnchorElement': const {
+ 'charset': 'charset',
+ 'coords': 'coords',
+ 'download': 'download',
+ 'hash': 'hash',
+ 'host': 'host',
+ 'hostname': 'hostname',
+ 'href': 'href',
+ 'hreflang': 'hreflang',
+ 'name': 'name',
+ 'pathname': 'pathname',
+ 'ping': 'ping',
+ 'port': 'port',
+ 'protocol': 'protocol',
+ 'rel': 'rel',
+ 'rev': 'rev',
+ 'search': 'search',
+ 'shape': 'shape',
+ 'target': 'target',
+ 'type': 'type',
+ },
+ 'AreaElement': const {
+ 'alt': 'alt',
+ 'coords': 'coords',
+ 'href': 'href',
+ 'nohref': 'noHref',
+ 'ping': 'ping',
+ 'shape': 'shape',
+ 'target': 'target',
+ },
+ 'BRElement': const {
+ 'clear': 'clear',
+ },
+ 'BaseElement': const {
+ 'href': 'href',
+ 'target': 'target',
+ },
+ 'BodyElement': const {
+ 'alink': 'aLink',
+ 'background': 'background',
+ 'bgcolor': 'bgColor',
+ 'link': 'link',
+ 'vlink': 'vLink',
+ },
+ 'ButtonElement': const {
+ 'autofocus': 'autofocus',
+ 'disabled': 'disabled',
+ 'formaction': 'formAction',
+ 'formenctype': 'formEnctype',
+ 'formmethod': 'formMethod',
+ 'formnovalidate': 'formNoValidate',
+ 'formtarget': 'formTarget',
+ 'name': 'name',
+ 'type': 'type',
+ 'value': 'value',
+ },
+ 'CanvasElement': const {
+ 'height': 'height',
+ 'width': 'width',
+ },
+ 'DListElement': const {
+ 'compact': 'compact',
+ },
+ 'DetailsElement': const {
+ 'open': 'open',
+ },
+ 'DivElement': const {
+ 'align': 'align',
+ },
+ 'Element': const {
+ 'xtag': 'xtag',
+ 'contenteditable': 'contentEditable',
+ 'dir': 'dir',
+ 'draggable': 'draggable',
+ 'hidden': 'hidden',
+ 'id': 'id',
+ 'innerhtml': 'innerHTML',
+ 'lang': 'lang',
+ 'spellcheck': 'spellcheck',
+ 'tabindex': 'tabIndex',
+ 'title': 'title',
+ 'translate': 'translate',
+ 'dropzone': 'webkitdropzone',
+ 'scrollleft': 'scrollLeft',
+ 'scrolltop': 'scrollTop',
+ },
+ 'EmbedElement': const {
+ 'align': 'align',
+ 'height': 'height',
+ 'name': 'name',
+ 'src': 'src',
+ 'type': 'type',
+ 'width': 'width',
+ },
+ 'FieldSetElement': const {
+ 'disabled': 'disabled',
+ 'name': 'name',
+ },
+ 'FormElement': const {
+ 'accept-charset': 'acceptCharset',
+ 'action': 'action',
+ 'autocomplete': 'autocomplete',
+ 'encoding': 'encoding',
+ 'enctype': 'enctype',
+ 'method': 'method',
+ 'name': 'name',
+ 'novalidate': 'noValidate',
+ 'target': 'target',
+ },
+ 'HRElement': const {
+ 'align': 'align',
+ 'noshade': 'noShade',
+ 'size': 'size',
+ 'width': 'width',
+ },
+ 'HeadElement': const {
+ 'profile': 'profile',
+ },
+ 'HeadingElement': const {
+ 'align': 'align',
+ },
+ 'IFrameElement': const {
+ 'align': 'align',
+ 'frameborder': 'frameBorder',
+ 'height': 'height',
+ 'longdesc': 'longDesc',
+ 'marginheight': 'marginHeight',
+ 'marginwidth': 'marginWidth',
+ 'name': 'name',
+ 'sandbox': 'sandbox',
+ 'scrolling': 'scrolling',
+ 'src': 'src',
+ 'srcdoc': 'srcdoc',
+ 'width': 'width',
+ },
+ 'ImageElement': const {
+ 'align': 'align',
+ 'alt': 'alt',
+ 'border': 'border',
+ 'crossorigin': 'crossOrigin',
+ 'height': 'height',
+ 'hspace': 'hspace',
+ 'ismap': 'isMap',
+ 'longdesc': 'longDesc',
+ 'lowsrc': 'lowsrc',
+ 'name': 'name',
+ 'src': 'src',
+ 'usemap': 'useMap',
+ 'vspace': 'vspace',
+ 'width': 'width',
+ },
+ 'InputElement': const {
+ 'accept': 'accept',
+ 'align': 'align',
+ 'alt': 'alt',
+ 'autocomplete': 'autocomplete',
+ 'autofocus': 'autofocus',
+ 'checked': 'checked',
+ 'defaultchecked': 'defaultChecked',
+ 'default': 'defaultValue',
+ 'dirname': 'dirName',
+ 'disabled': 'disabled',
+ 'files': 'files',
+ 'formaction': 'formAction',
+ 'formenctype': 'formEnctype',
+ 'formmethod': 'formMethod',
+ 'formnovalidate': 'formNoValidate',
+ 'formtarget': 'formTarget',
+ 'height': 'height',
+ 'incremental': 'incremental',
+ 'indeterminate': 'indeterminate',
+ 'max': 'max',
+ 'maxlength': 'maxLength',
+ 'min': 'min',
+ 'multiple': 'multiple',
+ 'name': 'name',
+ 'pattern': 'pattern',
+ 'placeholder': 'placeholder',
+ 'readonly': 'readOnly',
+ 'required': 'required',
+ 'selectiondirection': 'selectionDirection',
+ 'selectionend': 'selectionEnd',
+ 'selectionstart': 'selectionStart',
+ 'size': 'size',
+ 'src': 'src',
+ 'step': 'step',
+ 'type': 'type',
+ 'usemap': 'useMap',
+ 'value': 'value',
+ 'valueasdate': 'valueAsDate',
+ 'valueasnumber': 'valueAsNumber',
+ 'webkitgrammar': 'webkitGrammar',
+ 'webkitspeech': 'webkitSpeech',
+ 'webkitdirectory': 'webkitdirectory',
+ 'width': 'width',
+ },
+ 'KeygenElement': const {
+ 'autofocus': 'autofocus',
+ 'challenge': 'challenge',
+ 'disabled': 'disabled',
+ 'keytype': 'keytype',
+ 'name': 'name',
+ },
+ 'LIElement': const {
+ 'type': 'type',
+ 'value': 'value',
+ },
+ 'LabelElement': const {
+ 'for': 'htmlFor',
+ },
+ 'LegendElement': const {
+ 'align': 'align',
+ },
+ 'LinkElement': const {
+ 'charset': 'charset',
+ 'disabled': 'disabled',
+ 'href': 'href',
+ 'hreflang': 'hreflang',
+ 'media': 'media',
+ 'rel': 'rel',
+ 'rev': 'rev',
+ 'sizes': 'sizes',
+ 'target': 'target',
+ 'type': 'type',
+ },
+ 'MapElement': const {
+ 'name': 'name',
+ },
+ 'MediaElement': const {
+ 'autoplay': 'autoplay',
+ 'controller': 'controller',
+ 'controls': 'controls',
+ 'currenttime': 'currentTime',
+ 'defaultmuted': 'defaultMuted',
+ 'defaultplaybackrate': 'defaultPlaybackRate',
+ 'loop': 'loop',
+ 'mediagroup': 'mediaGroup',
+ 'muted': 'muted',
+ 'playbackrate': 'playbackRate',
+ 'preload': 'preload',
+ 'src': 'src',
+ 'volume': 'volume',
+ 'webkitclosedcaptionsvisible': 'webkitClosedCaptionsVisible',
+ 'webkitpreservespitch': 'webkitPreservesPitch',
+ },
+ 'MenuElement': const {
+ 'compact': 'compact',
+ },
+ 'MetaElement': const {
+ 'content': 'content',
+ 'http-equiv': 'httpEquiv',
+ 'name': 'name',
+ 'scheme': 'scheme',
+ },
+ 'MeterElement': const {
+ 'high': 'high',
+ 'low': 'low',
+ 'max': 'max',
+ 'min': 'min',
+ 'optimum': 'optimum',
+ 'value': 'value',
+ },
+ 'ModElement': const {
+ 'cite': 'cite',
+ 'datetime': 'dateTime',
+ },
+ 'OListElement': const {
+ 'compact': 'compact',
+ 'reversed': 'reversed',
+ 'start': 'start',
+ 'type': 'type',
+ },
+ 'ObjectElement': const {
+ 'align': 'align',
+ 'archive': 'archive',
+ 'border': 'border',
+ 'code': 'code',
+ 'codebase': 'codeBase',
+ 'codetype': 'codeType',
+ 'data': 'data',
+ 'declare': 'declare',
+ 'height': 'height',
+ 'hspace': 'hspace',
+ 'name': 'name',
+ 'standby': 'standby',
+ 'type': 'type',
+ 'usemap': 'useMap',
+ 'vspace': 'vspace',
+ 'width': 'width',
+ },
+ 'OptGroupElement': const {
+ 'disabled': 'disabled',
+ 'label': 'label',
+ },
+ 'OptionElement': const {
+ 'defaultselected': 'defaultSelected',
+ 'disabled': 'disabled',
+ 'label': 'label',
+ 'selected': 'selected',
+ 'value': 'value',
+ },
+ 'OutputElement': const {
+ 'default': 'defaultValue',
+ 'for': 'htmlFor',
+ 'name': 'name',
+ 'value': 'value',
+ },
+ 'ParagraphElement': const {
+ 'align': 'align',
+ },
+ 'ParamElement': const {
+ 'name': 'name',
+ 'type': 'type',
+ 'value': 'value',
+ 'valuetype': 'valueType',
+ },
+ 'PreElement': const {
+ 'width': 'width',
+ 'wrap': 'wrap',
+ },
+ 'ProgressElement': const {
+ 'max': 'max',
+ 'value': 'value',
+ },
+ 'QuoteElement': const {
+ 'cite': 'cite',
+ },
+ 'ScriptElement': const {
+ 'async': 'async',
+ 'charset': 'charset',
+ 'crossorigin': 'crossOrigin',
+ 'defer': 'defer',
+ 'event': 'event',
+ 'for': 'htmlFor',
+ 'src': 'src',
+ 'type': 'type',
+ },
+ 'SelectElement': const {
+ 'autofocus': 'autofocus',
+ 'disabled': 'disabled',
+ 'length': 'length',
+ 'multiple': 'multiple',
+ 'name': 'name',
+ 'required': 'required',
+ 'selectedindex': 'selectedIndex',
+ 'size': 'size',
+ 'value': 'value',
+ },
+ 'SourceElement': const {
+ 'media': 'media',
+ 'src': 'src',
+ 'type': 'type',
+ },
+ 'StyleElement': const {
+ 'disabled': 'disabled',
+ 'media': 'media',
+ 'scoped': 'scoped',
+ 'type': 'type',
+ },
+ 'TableCaptionElement': const {
+ 'align': 'align',
+ },
+ 'TableCellElement': const {
+ 'abbr': 'abbr',
+ 'align': 'align',
+ 'axis': 'axis',
+ 'bgcolor': 'bgColor',
+ 'ch': 'ch',
+ 'choff': 'chOff',
+ 'colspan': 'colSpan',
+ 'headers': 'headers',
+ 'height': 'height',
+ 'nowrap': 'noWrap',
+ 'rowspan': 'rowSpan',
+ 'scope': 'scope',
+ 'valign': 'vAlign',
+ 'width': 'width',
+ },
+ 'TableColElement': const {
+ 'align': 'align',
+ 'ch': 'ch',
+ 'choff': 'chOff',
+ 'span': 'span',
+ 'valign': 'vAlign',
+ 'width': 'width',
+ },
+ 'TableElement': const {
+ 'align': 'align',
+ 'bgcolor': 'bgColor',
+ 'border': 'border',
+ 'caption': 'caption',
+ 'cellpadding': 'cellPadding',
+ 'cellspacing': 'cellSpacing',
+ 'frame': 'frame',
+ 'rules': 'rules',
+ 'summary': 'summary',
+ 'tfoot': 'tFoot',
+ 'thead': 'tHead',
+ 'width': 'width',
+ },
+ 'TableRowElement': const {
+ 'align': 'align',
+ 'bgcolor': 'bgColor',
+ 'ch': 'ch',
+ 'choff': 'chOff',
+ 'valign': 'vAlign',
+ },
+ 'TableSectionElement': const {
+ 'align': 'align',
+ 'ch': 'ch',
+ 'choff': 'chOff',
+ 'valign': 'vAlign',
+ },
+ 'TextAreaElement': const {
+ 'autofocus': 'autofocus',
+ 'cols': 'cols',
+ 'default': 'defaultValue',
+ 'dirname': 'dirName',
+ 'disabled': 'disabled',
+ 'maxlength': 'maxLength',
+ 'name': 'name',
+ 'placeholder': 'placeholder',
+ 'readonly': 'readOnly',
+ 'required': 'required',
+ 'rows': 'rows',
+ 'selectiondirection': 'selectionDirection',
+ 'selectionend': 'selectionEnd',
+ 'selectionstart': 'selectionStart',
+ 'value': 'value',
+ 'wrap': 'wrap',
+ },
+ 'TrackElement': const {
+ 'default': 'defaultValue',
+ 'kind': 'kind',
+ 'label': 'label',
+ 'src': 'src',
+ 'srclang': 'srclang',
+ },
+ 'UListElement': const {
+ 'compact': 'compact',
+ 'type': 'type',
+ },
+ 'VideoElement': const {
+ 'height': 'height',
+ 'poster': 'poster',
+ 'width': 'width',
+ },
+};
+
+var htmlElementExtends = const {
+ 'AnchorElement': 'Element',
+ 'AreaElement': 'Element',
+ 'AudioElement': 'MediaElement',
+ 'BRElement': 'Element',
+ 'BaseElement': 'Element',
+ 'BodyElement': 'Element',
+ 'ButtonElement': 'Element',
+ 'CanvasElement': 'Element',
+ 'DListElement': 'Element',
+ 'DataListElement': 'Element',
+ 'DetailsElement': 'Element',
+ 'DivElement': 'Element',
+ 'EmbedElement': 'Element',
+ 'FieldSetElement': 'Element',
+ 'FormElement': 'Element',
+ 'HRElement': 'Element',
+ 'HeadElement': 'Element',
+ 'HeadingElement': 'Element',
+ 'HtmlElement': 'Element',
+ 'IFrameElement': 'Element',
+ 'ImageElement': 'Element',
+ 'InputElement': 'Element',
+ 'KeygenElement': 'Element',
+ 'LIElement': 'Element',
+ 'LabelElement': 'Element',
+ 'LegendElement': 'Element',
+ 'LinkElement': 'Element',
+ 'MapElement': 'Element',
+ 'MediaElement': 'Element',
+ 'MenuElement': 'Element',
+ 'MetaElement': 'Element',
+ 'MeterElement': 'Element',
+ 'ModElement': 'Element',
+ 'OListElement': 'Element',
+ 'ObjectElement': 'Element',
+ 'OptGroupElement': 'Element',
+ 'OptionElement': 'Element',
+ 'OutputElement': 'Element',
+ 'ParagraphElement': 'Element',
+ 'ParamElement': 'Element',
+ 'PreElement': 'Element',
+ 'ProgressElement': 'Element',
+ 'QuoteElement': 'Element',
+ 'ScriptElement': 'Element',
+ 'SelectElement': 'Element',
+ 'SourceElement': 'Element',
+ 'SpanElement': 'Element',
+ 'StyleElement': 'Element',
+ 'TableCaptionElement': 'Element',
+ 'TableCellElement': 'Element',
+ 'TableColElement': 'Element',
+ 'TableElement': 'Element',
+ 'TableRowElement': 'Element',
+ 'TableSectionElement': 'Element',
+ 'TextAreaElement': 'Element',
+ 'TitleElement': 'Element',
+ 'TrackElement': 'Element',
+ 'UListElement': 'Element',
+ 'UnknownElement': 'Element',
+ 'VideoElement': 'MediaElement',
+};
« no previous file with comments | « lib/src/emitters.dart ('k') | lib/src/html5_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698