| 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 interface DOMSelection { | |
| 8 | |
| 9 Node get anchorNode(); | |
| 10 | |
| 11 int get anchorOffset(); | |
| 12 | |
| 13 Node get baseNode(); | |
| 14 | |
| 15 int get baseOffset(); | |
| 16 | |
| 17 Node get extentNode(); | |
| 18 | |
| 19 int get extentOffset(); | |
| 20 | |
| 21 Node get focusNode(); | |
| 22 | |
| 23 int get focusOffset(); | |
| 24 | |
| 25 bool get isCollapsed(); | |
| 26 | |
| 27 int get rangeCount(); | |
| 28 | |
| 29 String get type(); | |
| 30 | |
| 31 void addRange(Range range); | |
| 32 | |
| 33 void collapse(Node node, int index); | |
| 34 | |
| 35 void collapseToEnd(); | |
| 36 | |
| 37 void collapseToStart(); | |
| 38 | |
| 39 bool containsNode(Node node, bool allowPartial); | |
| 40 | |
| 41 void deleteFromDocument(); | |
| 42 | |
| 43 void empty(); | |
| 44 | |
| 45 void extend(Node node, int offset); | |
| 46 | |
| 47 Range getRangeAt(int index); | |
| 48 | |
| 49 void modify(String alter, String direction, String granularity); | |
| 50 | |
| 51 void removeAllRanges(); | |
| 52 | |
| 53 void selectAllChildren(Node node); | |
| 54 | |
| 55 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset); | |
| 56 | |
| 57 void setPosition(Node node, int offset); | |
| 58 | |
| 59 String toString(); | |
| 60 } | |
| OLD | NEW |