OLD | NEW |
1 | 1 |
2 class RangeJs extends DOMTypeJs implements Range native "*Range" { | 2 class _RangeJs extends _DOMTypeJs implements Range native "*Range" { |
3 | 3 |
4 static final int END_TO_END = 2; | 4 static final int END_TO_END = 2; |
5 | 5 |
6 static final int END_TO_START = 3; | 6 static final int END_TO_START = 3; |
7 | 7 |
8 static final int NODE_AFTER = 1; | 8 static final int NODE_AFTER = 1; |
9 | 9 |
10 static final int NODE_BEFORE = 0; | 10 static final int NODE_BEFORE = 0; |
11 | 11 |
12 static final int NODE_BEFORE_AND_AFTER = 2; | 12 static final int NODE_BEFORE_AND_AFTER = 2; |
13 | 13 |
14 static final int NODE_INSIDE = 3; | 14 static final int NODE_INSIDE = 3; |
15 | 15 |
16 static final int START_TO_END = 1; | 16 static final int START_TO_END = 1; |
17 | 17 |
18 static final int START_TO_START = 0; | 18 static final int START_TO_START = 0; |
19 | 19 |
20 bool get collapsed() native "return this.collapsed;"; | 20 bool get collapsed() native "return this.collapsed;"; |
21 | 21 |
22 NodeJs get commonAncestorContainer() native "return this.commonAncestorContain
er;"; | 22 _NodeJs get commonAncestorContainer() native "return this.commonAncestorContai
ner;"; |
23 | 23 |
24 NodeJs get endContainer() native "return this.endContainer;"; | 24 _NodeJs get endContainer() native "return this.endContainer;"; |
25 | 25 |
26 int get endOffset() native "return this.endOffset;"; | 26 int get endOffset() native "return this.endOffset;"; |
27 | 27 |
28 NodeJs get startContainer() native "return this.startContainer;"; | 28 _NodeJs get startContainer() native "return this.startContainer;"; |
29 | 29 |
30 int get startOffset() native "return this.startOffset;"; | 30 int get startOffset() native "return this.startOffset;"; |
31 | 31 |
32 DocumentFragmentJs cloneContents() native; | 32 _DocumentFragmentJs cloneContents() native; |
33 | 33 |
34 RangeJs cloneRange() native; | 34 _RangeJs cloneRange() native; |
35 | 35 |
36 void collapse(bool toStart) native; | 36 void collapse(bool toStart) native; |
37 | 37 |
38 int compareNode(NodeJs refNode) native; | 38 int compareNode(_NodeJs refNode) native; |
39 | 39 |
40 int comparePoint(NodeJs refNode, int offset) native; | 40 int comparePoint(_NodeJs refNode, int offset) native; |
41 | 41 |
42 DocumentFragmentJs createContextualFragment(String html) native; | 42 _DocumentFragmentJs createContextualFragment(String html) native; |
43 | 43 |
44 void deleteContents() native; | 44 void deleteContents() native; |
45 | 45 |
46 void detach() native; | 46 void detach() native; |
47 | 47 |
48 void expand(String unit) native; | 48 void expand(String unit) native; |
49 | 49 |
50 DocumentFragmentJs extractContents() native; | 50 _DocumentFragmentJs extractContents() native; |
51 | 51 |
52 ClientRectJs getBoundingClientRect() native; | 52 _ClientRectJs getBoundingClientRect() native; |
53 | 53 |
54 ClientRectListJs getClientRects() native; | 54 _ClientRectListJs getClientRects() native; |
55 | 55 |
56 void insertNode(NodeJs newNode) native; | 56 void insertNode(_NodeJs newNode) native; |
57 | 57 |
58 bool intersectsNode(NodeJs refNode) native; | 58 bool intersectsNode(_NodeJs refNode) native; |
59 | 59 |
60 bool isPointInRange(NodeJs refNode, int offset) native; | 60 bool isPointInRange(_NodeJs refNode, int offset) native; |
61 | 61 |
62 void selectNode(NodeJs refNode) native; | 62 void selectNode(_NodeJs refNode) native; |
63 | 63 |
64 void selectNodeContents(NodeJs refNode) native; | 64 void selectNodeContents(_NodeJs refNode) native; |
65 | 65 |
66 void setEnd(NodeJs refNode, int offset) native; | 66 void setEnd(_NodeJs refNode, int offset) native; |
67 | 67 |
68 void setEndAfter(NodeJs refNode) native; | 68 void setEndAfter(_NodeJs refNode) native; |
69 | 69 |
70 void setEndBefore(NodeJs refNode) native; | 70 void setEndBefore(_NodeJs refNode) native; |
71 | 71 |
72 void setStart(NodeJs refNode, int offset) native; | 72 void setStart(_NodeJs refNode, int offset) native; |
73 | 73 |
74 void setStartAfter(NodeJs refNode) native; | 74 void setStartAfter(_NodeJs refNode) native; |
75 | 75 |
76 void setStartBefore(NodeJs refNode) native; | 76 void setStartBefore(_NodeJs refNode) native; |
77 | 77 |
78 void surroundContents(NodeJs newParent) native; | 78 void surroundContents(_NodeJs newParent) native; |
79 | 79 |
80 String toString() native; | 80 String toString() native; |
81 } | 81 } |
OLD | NEW |