OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const unsigned short END_TO_START = 3; | 49 const unsigned short END_TO_START = 3; |
50 [RaisesException] short compareBoundaryPoints(unsigned short how, Range sour
ceRange); | 50 [RaisesException] short compareBoundaryPoints(unsigned short how, Range sour
ceRange); |
51 | 51 |
52 [RaisesException, CustomElementCallbacks] void deleteContents(); | 52 [RaisesException, CustomElementCallbacks] void deleteContents(); |
53 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment extrac
tContents(); | 53 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment extrac
tContents(); |
54 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment cloneC
ontents(); | 54 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment cloneC
ontents(); |
55 [RaisesException, CustomElementCallbacks] void insertNode(Node node); | 55 [RaisesException, CustomElementCallbacks] void insertNode(Node node); |
56 [RaisesException, CustomElementCallbacks] void surroundContents(Node newPare
nt); | 56 [RaisesException, CustomElementCallbacks] void surroundContents(Node newPare
nt); |
57 | 57 |
58 [NewObject] Range cloneRange(); | 58 [NewObject] Range cloneRange(); |
59 [DeprecateAs=RangeDetach] void detach(); | 59 [MeasureAs=RangeDetach] void detach(); |
60 | 60 |
61 [RaisesException] boolean isPointInRange(Node node, long offset); | 61 [RaisesException] boolean isPointInRange(Node node, long offset); |
62 [RaisesException] short comparePoint(Node node, long offset); | 62 [RaisesException] short comparePoint(Node node, long offset); |
63 | 63 |
64 [RaisesException] boolean intersectsNode(Node node); | 64 [RaisesException] boolean intersectsNode(Node node); |
65 | 65 |
66 stringifier; | 66 stringifier; |
67 | 67 |
68 // CSSOM View Module | 68 // CSSOM View Module |
69 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-range-interface | 69 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-range-interface |
70 // FIXME: getClientRect() and getBoundingClientRect() should | 70 // FIXME: getClientRect() and getBoundingClientRect() should |
71 // return DOMRectList and DOMRect respectively. | 71 // return DOMRectList and DOMRect respectively. |
72 ClientRectList getClientRects(); | 72 ClientRectList getClientRects(); |
73 ClientRect getBoundingClientRect(); | 73 ClientRect getBoundingClientRect(); |
74 | 74 |
75 // DOM Parsing and Serialization | 75 // DOM Parsing and Serialization |
76 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-range-interface | 76 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-range-interface |
77 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment create
ContextualFragment(DOMString fragment); | 77 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment create
ContextualFragment(DOMString fragment); |
78 | 78 |
79 // Non-standard API | 79 // Non-standard API |
80 [RaisesException, DeprecateAs=RangeExpand] void expand([Default=Undefined] o
ptional DOMString unit); | 80 [RaisesException, DeprecateAs=RangeExpand] void expand([Default=Undefined] o
ptional DOMString unit); |
81 }; | 81 }; |
OLD | NEW |