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

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

Issue 9233028: Frog dart:dom using interfaces and native implementation classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 8 years, 11 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 Node native "*Node" { 2 class NodeJS 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;
11 11
12 static final int DOCUMENT_NODE = 9; 12 static final int DOCUMENT_NODE = 9;
(...skipping 17 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 NamedNodeMap get attributes() native "return this.attributes;"; 40 NamedNodeMapJS get attributes() native "return this.attributes;";
41 41
42 String get baseURI() native "return this.baseURI;"; 42 String get baseURI() native "return this.baseURI;";
43 43
44 NodeList get childNodes() native "return this.childNodes;"; 44 NodeListJS get childNodes() native "return this.childNodes;";
45 45
46 Node get firstChild() native "return this.firstChild;"; 46 NodeJS get firstChild() native "return this.firstChild;";
47 47
48 Node get lastChild() native "return this.lastChild;"; 48 NodeJS get lastChild() native "return this.lastChild;";
49 49
50 String get localName() native "return this.localName;"; 50 String get localName() native "return this.localName;";
51 51
52 String get namespaceURI() native "return this.namespaceURI;"; 52 String get namespaceURI() native "return this.namespaceURI;";
53 53
54 Node get nextSibling() native "return this.nextSibling;"; 54 NodeJS get nextSibling() native "return this.nextSibling;";
55 55
56 String get nodeName() native "return this.nodeName;"; 56 String get nodeName() native "return this.nodeName;";
57 57
58 int get nodeType() native "return this.nodeType;"; 58 int get nodeType() native "return this.nodeType;";
59 59
60 String get nodeValue() native "return this.nodeValue;"; 60 String get nodeValue() native "return this.nodeValue;";
61 61
62 void set nodeValue(String value) native "this.nodeValue = value;"; 62 void set nodeValue(String value) native "this.nodeValue = value;";
63 63
64 Document get ownerDocument() native "return this.ownerDocument;"; 64 DocumentJS get ownerDocument() native "return this.ownerDocument;";
65 65
66 Element get parentElement() native "return this.parentElement;"; 66 ElementJS get parentElement() native "return this.parentElement;";
67 67
68 Node get parentNode() native "return this.parentNode;"; 68 NodeJS get parentNode() native "return this.parentNode;";
69 69
70 String get prefix() native "return this.prefix;"; 70 String get prefix() native "return this.prefix;";
71 71
72 void set prefix(String value) native "this.prefix = value;"; 72 void set prefix(String value) native "this.prefix = value;";
73 73
74 Node get previousSibling() native "return this.previousSibling;"; 74 NodeJS get previousSibling() native "return this.previousSibling;";
75 75
76 String get textContent() native "return this.textContent;"; 76 String get textContent() native "return this.textContent;";
77 77
78 void set textContent(String value) native "this.textContent = value;"; 78 void set textContent(String value) native "this.textContent = value;";
79 79
80 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 80 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
81 81
82 Node appendChild(Node newChild) native; 82 NodeJS appendChild(NodeJS newChild) native;
83 83
84 Node cloneNode(bool deep) native; 84 NodeJS cloneNode(bool deep) native;
85 85
86 int compareDocumentPosition(Node other) native; 86 int compareDocumentPosition(NodeJS other) native;
87 87
88 bool contains(Node other) native; 88 bool contains(NodeJS other) native;
89 89
90 bool dispatchEvent(Event event) native; 90 bool dispatchEvent(EventJS event) native;
91 91
92 bool hasAttributes() native; 92 bool hasAttributes() native;
93 93
94 bool hasChildNodes() native; 94 bool hasChildNodes() native;
95 95
96 Node insertBefore(Node newChild, Node refChild) native; 96 NodeJS insertBefore(NodeJS newChild, NodeJS refChild) native;
97 97
98 bool isDefaultNamespace(String namespaceURI) native; 98 bool isDefaultNamespace(String namespaceURI) native;
99 99
100 bool isEqualNode(Node other) native; 100 bool isEqualNode(NodeJS other) native;
101 101
102 bool isSameNode(Node other) native; 102 bool isSameNode(NodeJS other) native;
103 103
104 bool isSupported(String feature, String version) native; 104 bool isSupported(String feature, String version) native;
105 105
106 String lookupNamespaceURI(String prefix) native; 106 String lookupNamespaceURI(String prefix) native;
107 107
108 String lookupPrefix(String namespaceURI) native; 108 String lookupPrefix(String namespaceURI) native;
109 109
110 void normalize() native; 110 void normalize() native;
111 111
112 Node removeChild(Node oldChild) native; 112 NodeJS removeChild(NodeJS oldChild) native;
113 113
114 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 114 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
115 115
116 Node replaceChild(Node newChild, Node oldChild) native; 116 NodeJS replaceChild(NodeJS newChild, NodeJS oldChild) native;
117 117
118 var dartObjectLocalStorage; 118 var dartObjectLocalStorage;
119 119
120 String get typeName() native; 120 String get typeName() native;
121 } 121 }
OLDNEW
« no previous file with comments | « client/dom/generated/src/frog/Navigator.dart ('k') | client/dom/generated/src/frog/NodeFilter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698