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

Side by Side Diff: client/dom/generated/src/frog/Node.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native Created 8 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 class _NodeJs extends _DOMTypeJs implements Node native "*Node" { 2 class _NodeJs extends _DOMTypeJs implements Node native "*Node" {
3 3
4 static final int ATTRIBUTE_NODE = 2; 4 static final int ATTRIBUTE_NODE = 2;
5 5
6 static final int CDATA_SECTION_NODE = 4; 6 static final int CDATA_SECTION_NODE = 4;
7 7
8 static final int COMMENT_NODE = 8; 8 static final int COMMENT_NODE = 8;
9 9
10 static final int DOCUMENT_FRAGMENT_NODE = 11; 10 static final int DOCUMENT_FRAGMENT_NODE = 11;
(...skipping 19 matching lines...) Expand all
30 static final int ENTITY_NODE = 6; 30 static final int ENTITY_NODE = 6;
31 31
32 static final int ENTITY_REFERENCE_NODE = 5; 32 static final int ENTITY_REFERENCE_NODE = 5;
33 33
34 static final int NOTATION_NODE = 12; 34 static final int NOTATION_NODE = 12;
35 35
36 static final int PROCESSING_INSTRUCTION_NODE = 7; 36 static final int PROCESSING_INSTRUCTION_NODE = 7;
37 37
38 static final int TEXT_NODE = 3; 38 static final int TEXT_NODE = 3;
39 39
40 _NamedNodeMapJs get attributes() native "return this.attributes;"; 40 final _NamedNodeMapJs attributes;
41 41
42 String get baseURI() native "return this.baseURI;"; 42 final String baseURI;
43 43
44 _NodeListJs get childNodes() native "return this.childNodes;"; 44 final _NodeListJs childNodes;
45 45
46 _NodeJs get firstChild() native "return this.firstChild;"; 46 final _NodeJs firstChild;
47 47
48 _NodeJs get lastChild() native "return this.lastChild;"; 48 final _NodeJs lastChild;
49 49
50 String get localName() native "return this.localName;"; 50 final String localName;
51 51
52 String get namespaceURI() native "return this.namespaceURI;"; 52 final String namespaceURI;
53 53
54 _NodeJs get nextSibling() native "return this.nextSibling;"; 54 final _NodeJs nextSibling;
55 55
56 String get nodeName() native "return this.nodeName;"; 56 final String nodeName;
57 57
58 int get nodeType() native "return this.nodeType;"; 58 final int nodeType;
59 59
60 String get nodeValue() native "return this.nodeValue;"; 60 String nodeValue;
61 61
62 void set nodeValue(String value) native "this.nodeValue = value;"; 62 final _DocumentJs ownerDocument;
63 63
64 _DocumentJs get ownerDocument() native "return this.ownerDocument;"; 64 final _ElementJs parentElement;
65 65
66 _ElementJs get parentElement() native "return this.parentElement;"; 66 final _NodeJs parentNode;
67 67
68 _NodeJs get parentNode() native "return this.parentNode;"; 68 String prefix;
69 69
70 String get prefix() native "return this.prefix;"; 70 final _NodeJs previousSibling;
71 71
72 void set prefix(String value) native "this.prefix = value;"; 72 String textContent;
73
74 _NodeJs get previousSibling() native "return this.previousSibling;";
75
76 String get textContent() native "return this.textContent;";
77
78 void set textContent(String value) native "this.textContent = value;";
79 73
80 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 74 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
81 75
82 _NodeJs appendChild(_NodeJs newChild) native; 76 _NodeJs appendChild(_NodeJs newChild) native;
83 77
84 _NodeJs cloneNode(bool deep) native; 78 _NodeJs cloneNode(bool deep) native;
85 79
86 int compareDocumentPosition(_NodeJs other) native; 80 int compareDocumentPosition(_NodeJs other) native;
87 81
88 bool contains(_NodeJs other) native; 82 bool contains(_NodeJs other) native;
(...skipping 19 matching lines...) Expand all
108 String lookupPrefix(String namespaceURI) native; 102 String lookupPrefix(String namespaceURI) native;
109 103
110 void normalize() native; 104 void normalize() native;
111 105
112 _NodeJs removeChild(_NodeJs oldChild) native; 106 _NodeJs removeChild(_NodeJs oldChild) native;
113 107
114 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 108 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
115 109
116 _NodeJs replaceChild(_NodeJs newChild, _NodeJs oldChild) native; 110 _NodeJs replaceChild(_NodeJs newChild, _NodeJs oldChild) native;
117 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698