OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 [Default=Undefined] optional boolean allowPartial); | 51 [Default=Undefined] optional boolean allowPartial); |
52 [RaisesException] void selectAllChildren([Default=Undefined] optional Node n
ode); | 52 [RaisesException] void selectAllChildren([Default=Undefined] optional Node n
ode); |
53 | 53 |
54 [RaisesException] void extend([Default=Undefined] optional Node node, | 54 [RaisesException] void extend([Default=Undefined] optional Node node, |
55 [Default=Undefined] optional long offset); | 55 [Default=Undefined] optional long offset); |
56 | 56 |
57 [RaisesException] Range getRangeAt([Default=Undefined] optional long index); | 57 [RaisesException] Range getRangeAt([Default=Undefined] optional long index); |
58 void removeAllRanges(); | 58 void removeAllRanges(); |
59 void addRange([Default=Undefined] optional Range range); | 59 void addRange([Default=Undefined] optional Range range); |
60 | 60 |
61 [NotEnumerable] DOMString toString(); | 61 [NotEnumerable] stringifier; |
62 | 62 |
63 // WebKit extensions | 63 // WebKit extensions |
64 [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode; | 64 [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode; |
65 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; | 65 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; |
66 [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode; | 66 [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode; |
67 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset; | 67 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset; |
68 | 68 |
69 // WebKit's "type" accessor returns "None", "Range" and "Caret" | 69 // WebKit's "type" accessor returns "None", "Range" and "Caret" |
70 // IE's type accessor returns "none", "text" and "control" | 70 // IE's type accessor returns "none", "text" and "control" |
71 [MeasureAs=SelectionType] readonly attribute DOMString type; | 71 [MeasureAs=SelectionType] readonly attribute DOMString type; |
72 | 72 |
73 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri
ng alter, | 73 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri
ng alter, |
74 [Default=Undefined] optional DOMStri
ng direction, | 74 [Default=Undefined] optional DOMStri
ng direction, |
75 [Default=Undefined] optional DOMStri
ng granularity); | 75 [Default=Undefined] optional DOMStri
ng granularity); |
76 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent
([Default=Undefined] optional Node baseNode, | 76 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent
([Default=Undefined] optional Node baseNode, |
77
[Default=Undefined] optional long baseOffset, | 77
[Default=Undefined] optional long baseOffset, |
78
[Default=Undefined] optional Node extentNode, | 78
[Default=Undefined] optional Node extentNode, |
79
[Default=Undefined] optional long extentOffset); | 79
[Default=Undefined] optional long extentOffset); |
80 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty
peChecking=Interface|Nullable] void setPosition(Node node, | 80 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty
peChecking=Interface|Nullable] void setPosition(Node node, |
81
optional long offset); | 81
optional long offset); |
82 | 82 |
83 // IE extentions | 83 // IE extentions |
84 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx | 84 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx |
85 [MeasureAs=SelectionEmpty] void empty(); | 85 [MeasureAs=SelectionEmpty] void empty(); |
86 }; | 86 }; |
87 | 87 |
OLD | NEW |