OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _RangeWrappingImplementation extends DOMWrapperBase implements Range { | |
8 _RangeWrappingImplementation() : super() {} | |
9 | |
10 static create__RangeWrappingImplementation() native { | |
11 return new _RangeWrappingImplementation(); | |
12 } | |
13 | |
14 bool get collapsed() { return _get_collapsed(this); } | |
15 static bool _get_collapsed(var _this) native; | |
16 | |
17 Node get commonAncestorContainer() { return _get_commonAncestorContainer(this)
; } | |
18 static Node _get_commonAncestorContainer(var _this) native; | |
19 | |
20 Node get endContainer() { return _get_endContainer(this); } | |
21 static Node _get_endContainer(var _this) native; | |
22 | |
23 int get endOffset() { return _get_endOffset(this); } | |
24 static int _get_endOffset(var _this) native; | |
25 | |
26 Node get startContainer() { return _get_startContainer(this); } | |
27 static Node _get_startContainer(var _this) native; | |
28 | |
29 int get startOffset() { return _get_startOffset(this); } | |
30 static int _get_startOffset(var _this) native; | |
31 | |
32 DocumentFragment cloneContents() { | |
33 return _cloneContents(this); | |
34 } | |
35 static DocumentFragment _cloneContents(receiver) native; | |
36 | |
37 Range cloneRange() { | |
38 return _cloneRange(this); | |
39 } | |
40 static Range _cloneRange(receiver) native; | |
41 | |
42 void collapse(bool toStart) { | |
43 _collapse(this, toStart); | |
44 return; | |
45 } | |
46 static void _collapse(receiver, toStart) native; | |
47 | |
48 int compareNode(Node refNode) { | |
49 return _compareNode(this, refNode); | |
50 } | |
51 static int _compareNode(receiver, refNode) native; | |
52 | |
53 int comparePoint(Node refNode, int offset) { | |
54 return _comparePoint(this, refNode, offset); | |
55 } | |
56 static int _comparePoint(receiver, refNode, offset) native; | |
57 | |
58 DocumentFragment createContextualFragment(String html) { | |
59 return _createContextualFragment(this, html); | |
60 } | |
61 static DocumentFragment _createContextualFragment(receiver, html) native; | |
62 | |
63 void deleteContents() { | |
64 _deleteContents(this); | |
65 return; | |
66 } | |
67 static void _deleteContents(receiver) native; | |
68 | |
69 void detach() { | |
70 _detach(this); | |
71 return; | |
72 } | |
73 static void _detach(receiver) native; | |
74 | |
75 void expand(String unit) { | |
76 _expand(this, unit); | |
77 return; | |
78 } | |
79 static void _expand(receiver, unit) native; | |
80 | |
81 DocumentFragment extractContents() { | |
82 return _extractContents(this); | |
83 } | |
84 static DocumentFragment _extractContents(receiver) native; | |
85 | |
86 ClientRect getBoundingClientRect() { | |
87 return _getBoundingClientRect(this); | |
88 } | |
89 static ClientRect _getBoundingClientRect(receiver) native; | |
90 | |
91 ClientRectList getClientRects() { | |
92 return _getClientRects(this); | |
93 } | |
94 static ClientRectList _getClientRects(receiver) native; | |
95 | |
96 void insertNode(Node newNode) { | |
97 _insertNode(this, newNode); | |
98 return; | |
99 } | |
100 static void _insertNode(receiver, newNode) native; | |
101 | |
102 bool intersectsNode(Node refNode) { | |
103 return _intersectsNode(this, refNode); | |
104 } | |
105 static bool _intersectsNode(receiver, refNode) native; | |
106 | |
107 bool isPointInRange(Node refNode, int offset) { | |
108 return _isPointInRange(this, refNode, offset); | |
109 } | |
110 static bool _isPointInRange(receiver, refNode, offset) native; | |
111 | |
112 void selectNode(Node refNode) { | |
113 _selectNode(this, refNode); | |
114 return; | |
115 } | |
116 static void _selectNode(receiver, refNode) native; | |
117 | |
118 void selectNodeContents(Node refNode) { | |
119 _selectNodeContents(this, refNode); | |
120 return; | |
121 } | |
122 static void _selectNodeContents(receiver, refNode) native; | |
123 | |
124 void setEnd(Node refNode, int offset) { | |
125 _setEnd(this, refNode, offset); | |
126 return; | |
127 } | |
128 static void _setEnd(receiver, refNode, offset) native; | |
129 | |
130 void setEndAfter(Node refNode) { | |
131 _setEndAfter(this, refNode); | |
132 return; | |
133 } | |
134 static void _setEndAfter(receiver, refNode) native; | |
135 | |
136 void setEndBefore(Node refNode) { | |
137 _setEndBefore(this, refNode); | |
138 return; | |
139 } | |
140 static void _setEndBefore(receiver, refNode) native; | |
141 | |
142 void setStart(Node refNode, int offset) { | |
143 _setStart(this, refNode, offset); | |
144 return; | |
145 } | |
146 static void _setStart(receiver, refNode, offset) native; | |
147 | |
148 void setStartAfter(Node refNode) { | |
149 _setStartAfter(this, refNode); | |
150 return; | |
151 } | |
152 static void _setStartAfter(receiver, refNode) native; | |
153 | |
154 void setStartBefore(Node refNode) { | |
155 _setStartBefore(this, refNode); | |
156 return; | |
157 } | |
158 static void _setStartBefore(receiver, refNode) native; | |
159 | |
160 void surroundContents(Node newParent) { | |
161 _surroundContents(this, newParent); | |
162 return; | |
163 } | |
164 static void _surroundContents(receiver, newParent) native; | |
165 | |
166 String toString() { | |
167 return _toString(this); | |
168 } | |
169 static String _toString(receiver) native; | |
170 | |
171 String get typeName() { return "Range"; } | |
172 } | |
OLD | NEW |