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._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 bool get collapsed() { return _ptr.collapsed; } | |
11 | |
12 Node get commonAncestorContainer() { return LevelDom.wrapNode(_ptr.commonAnces
torContainer); } | |
13 | |
14 Node get endContainer() { return LevelDom.wrapNode(_ptr.endContainer); } | |
15 | |
16 int get endOffset() { return _ptr.endOffset; } | |
17 | |
18 Node get startContainer() { return LevelDom.wrapNode(_ptr.startContainer); } | |
19 | |
20 int get startOffset() { return _ptr.startOffset; } | |
21 | |
22 DocumentFragment cloneContents() { | |
23 return LevelDom.wrapDocumentFragment(_ptr.cloneContents()); | |
24 } | |
25 | |
26 Range cloneRange() { | |
27 return LevelDom.wrapRange(_ptr.cloneRange()); | |
28 } | |
29 | |
30 void collapse(bool toStart) { | |
31 _ptr.collapse(toStart); | |
32 return; | |
33 } | |
34 | |
35 int compareNode(Node refNode) { | |
36 return _ptr.compareNode(LevelDom.unwrap(refNode)); | |
37 } | |
38 | |
39 int comparePoint(Node refNode, int offset) { | |
40 return _ptr.comparePoint(LevelDom.unwrap(refNode), offset); | |
41 } | |
42 | |
43 DocumentFragment createContextualFragment(String html) { | |
44 return LevelDom.wrapDocumentFragment(_ptr.createContextualFragment(html)); | |
45 } | |
46 | |
47 void deleteContents() { | |
48 _ptr.deleteContents(); | |
49 return; | |
50 } | |
51 | |
52 void detach() { | |
53 _ptr.detach(); | |
54 return; | |
55 } | |
56 | |
57 void expand(String unit) { | |
58 _ptr.expand(unit); | |
59 return; | |
60 } | |
61 | |
62 DocumentFragment extractContents() { | |
63 return LevelDom.wrapDocumentFragment(_ptr.extractContents()); | |
64 } | |
65 | |
66 ClientRect getBoundingClientRect() { | |
67 return LevelDom.wrapClientRect(_ptr.getBoundingClientRect()); | |
68 } | |
69 | |
70 ClientRectList getClientRects() { | |
71 return LevelDom.wrapClientRectList(_ptr.getClientRects()); | |
72 } | |
73 | |
74 void insertNode(Node newNode) { | |
75 _ptr.insertNode(LevelDom.unwrap(newNode)); | |
76 return; | |
77 } | |
78 | |
79 bool intersectsNode(Node refNode) { | |
80 return _ptr.intersectsNode(LevelDom.unwrap(refNode)); | |
81 } | |
82 | |
83 bool isPointInRange(Node refNode, int offset) { | |
84 return _ptr.isPointInRange(LevelDom.unwrap(refNode), offset); | |
85 } | |
86 | |
87 void selectNode(Node refNode) { | |
88 _ptr.selectNode(LevelDom.unwrap(refNode)); | |
89 return; | |
90 } | |
91 | |
92 void selectNodeContents(Node refNode) { | |
93 _ptr.selectNodeContents(LevelDom.unwrap(refNode)); | |
94 return; | |
95 } | |
96 | |
97 void setEnd(Node refNode, int offset) { | |
98 _ptr.setEnd(LevelDom.unwrap(refNode), offset); | |
99 return; | |
100 } | |
101 | |
102 void setEndAfter(Node refNode) { | |
103 _ptr.setEndAfter(LevelDom.unwrap(refNode)); | |
104 return; | |
105 } | |
106 | |
107 void setEndBefore(Node refNode) { | |
108 _ptr.setEndBefore(LevelDom.unwrap(refNode)); | |
109 return; | |
110 } | |
111 | |
112 void setStart(Node refNode, int offset) { | |
113 _ptr.setStart(LevelDom.unwrap(refNode), offset); | |
114 return; | |
115 } | |
116 | |
117 void setStartAfter(Node refNode) { | |
118 _ptr.setStartAfter(LevelDom.unwrap(refNode)); | |
119 return; | |
120 } | |
121 | |
122 void setStartBefore(Node refNode) { | |
123 _ptr.setStartBefore(LevelDom.unwrap(refNode)); | |
124 return; | |
125 } | |
126 | |
127 void surroundContents(Node newParent) { | |
128 _ptr.surroundContents(LevelDom.unwrap(newParent)); | |
129 return; | |
130 } | |
131 | |
132 String toString() { | |
133 return _ptr.toString(); | |
134 } | |
135 } | |
OLD | NEW |