OLD | NEW |
(Empty) | |
| 1 |
| 2 class _DOMSelectionImpl implements DOMSelection native "*DOMSelection" { |
| 3 |
| 4 final _NodeImpl anchorNode; |
| 5 |
| 6 final int anchorOffset; |
| 7 |
| 8 final _NodeImpl baseNode; |
| 9 |
| 10 final int baseOffset; |
| 11 |
| 12 final _NodeImpl extentNode; |
| 13 |
| 14 final int extentOffset; |
| 15 |
| 16 final _NodeImpl focusNode; |
| 17 |
| 18 final int focusOffset; |
| 19 |
| 20 final bool isCollapsed; |
| 21 |
| 22 final int rangeCount; |
| 23 |
| 24 final String type; |
| 25 |
| 26 void addRange(_RangeImpl range) native; |
| 27 |
| 28 void collapse(_NodeImpl node, int index) native; |
| 29 |
| 30 void collapseToEnd() native; |
| 31 |
| 32 void collapseToStart() native; |
| 33 |
| 34 bool containsNode(_NodeImpl node, bool allowPartial) native; |
| 35 |
| 36 void deleteFromDocument() native; |
| 37 |
| 38 void empty() native; |
| 39 |
| 40 void extend(_NodeImpl node, int offset) native; |
| 41 |
| 42 _RangeImpl getRangeAt(int index) native; |
| 43 |
| 44 void modify(String alter, String direction, String granularity) native; |
| 45 |
| 46 void removeAllRanges() native; |
| 47 |
| 48 void selectAllChildren(_NodeImpl node) native; |
| 49 |
| 50 void setBaseAndExtent(_NodeImpl baseNode, int baseOffset, _NodeImpl extentNode
, int extentOffset) native; |
| 51 |
| 52 void setPosition(_NodeImpl node, int offset) native; |
| 53 |
| 54 String toString() native; |
| 55 } |
OLD | NEW |