Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Side by Side Diff: core/dom/Range.idl

Issue 155973006: Roll IDL to 1750 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/dom/Promise.idl ('k') | core/dom/RequestAnimationFrameCallback.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 // Introduced in DOM Level 2: 21 // Introduced in DOM Level 2:
22 [ 22 [
23 Constructor, 23 Constructor,
24 ConstructorCallWith=Document 24 ConstructorCallWith=Document,
25 ] interface Range { 25 ] interface Range {
26 26
27 [GetterRaisesException] readonly attribute Node startContainer; 27 [RaisesException=Getter] readonly attribute Node startContainer;
28 [GetterRaisesException] readonly attribute long startOffset; 28 [RaisesException=Getter] readonly attribute long startOffset;
29 [GetterRaisesException] readonly attribute Node endContainer; 29 [RaisesException=Getter] readonly attribute Node endContainer;
30 [GetterRaisesException] readonly attribute long endOffset; 30 [RaisesException=Getter] readonly attribute long endOffset;
31 [GetterRaisesException] readonly attribute boolean collapsed; 31 [RaisesException=Getter] readonly attribute boolean collapsed;
32 [GetterRaisesException] readonly attribute Node commonAncestorContainer; 32 [RaisesException=Getter] readonly attribute Node commonAncestorContainer;
33 33
34 [RaisesException] void setStart([Default=Undefined] optional Node refNode, 34 [RaisesException] void setStart(Node refNode, long offset);
35 [Default=Undefined] optional long offset); 35 [RaisesException] void setEnd(Node refNode, long offset);
36 [RaisesException] void setEnd([Default=Undefined] optional Node refNode, 36 [RaisesException] void setStartBefore(Node refNode);
37 [Default=Undefined] optional long offset); 37 [RaisesException] void setStartAfter(Node refNode);
38 [RaisesException] void setStartBefore([Default=Undefined] optional Node refN ode); 38 [RaisesException] void setEndBefore(Node refNode);
39 [RaisesException] void setStartAfter([Default=Undefined] optional Node refNo de); 39 [RaisesException] void setEndAfter(Node refNode);
40 [RaisesException] void setEndBefore([Default=Undefined] optional Node refNod e);
41 [RaisesException] void setEndAfter([Default=Undefined] optional Node refNode );
42 [RaisesException] void collapse([Default=Undefined] optional boolean toStart ); 40 [RaisesException] void collapse([Default=Undefined] optional boolean toStart );
43 [RaisesException] void selectNode([Default=Undefined] optional Node refNode) ; 41 [RaisesException] void selectNode(Node refNode);
44 [RaisesException] void selectNodeContents([Default=Undefined] optional Node refNode); 42 [RaisesException] void selectNodeContents(Node refNode);
45 43
46 // CompareHow 44 // CompareHow
47 const unsigned short START_TO_START = 0; 45 const unsigned short START_TO_START = 0;
48 const unsigned short START_TO_END = 1; 46 const unsigned short START_TO_END = 1;
49 const unsigned short END_TO_END = 2; 47 const unsigned short END_TO_END = 2;
50 const unsigned short END_TO_START = 3; 48 const unsigned short END_TO_START = 3;
51 49
52 [RaisesException] short compareBoundaryPoints([Default=Undefined] optional CompareHow how, 50 [RaisesException] short compareBoundaryPoints(CompareHow how, Range sourceRa nge);
53 [Default=Undefined] optional Rang e sourceRange);
54 51
55 [RaisesException, CustomElementCallbacks] void deleteContents(); 52 [RaisesException, CustomElementCallbacks] void deleteContents();
56 [RaisesException, CustomElementCallbacks] DocumentFragment extractContents() ; 53 [RaisesException, CustomElementCallbacks] DocumentFragment extractContents() ;
57 [RaisesException, CustomElementCallbacks] DocumentFragment cloneContents(); 54 [RaisesException, CustomElementCallbacks] DocumentFragment cloneContents();
58 [RaisesException, CustomElementCallbacks] void insertNode([Default=Undefined ] optional Node newNode); 55 [RaisesException, CustomElementCallbacks] void insertNode(Node newNode);
59 [RaisesException, CustomElementCallbacks] void surroundContents([Default=Und efined] optional Node newParent); 56 [RaisesException, CustomElementCallbacks] void surroundContents(Node newPare nt);
60 [RaisesException] Range cloneRange(); 57 [RaisesException] Range cloneRange();
61 [RaisesException] DOMString toString(); 58 [RaisesException] DOMString toString();
62 59
63 [RaisesException] void detach(); 60 [RaisesException] void detach();
64 61
62 [RaisesException] boolean isPointInRange(Node refNode, long offset);
63 [RaisesException] short comparePoint(Node refNode, long offset);
64
65 [RaisesException] boolean intersectsNode(Node refNode);
66
65 // CSSOM View Module API extensions 67 // CSSOM View Module API extensions
66 68
67 ClientRectList getClientRects(); 69 ClientRectList getClientRects();
68 ClientRect getBoundingClientRect(); 70 ClientRect getBoundingClientRect();
69 71
70 // extensions 72 // DOM Parsing and Serialization
71 73
72 [RaisesException, CustomElementCallbacks] DocumentFragment createContextualF ragment([Default=Undefined] optional DOMString html); 74 [RaisesException, CustomElementCallbacks] DocumentFragment createContextualF ragment(DOMString html);
73 75
74 // WebKit extensions 76 // WebKit extensions
75 77
76 [RaisesException] boolean intersectsNode([Default=Undefined] optional Node r efNode);
77
78 [RaisesException] short compareNode([Default=Undefined] optional Node refNod e);
79
80 // CompareResults 78 // CompareResults
81 const unsigned short NODE_BEFORE = 0; 79 const unsigned short NODE_BEFORE = 0;
82 const unsigned short NODE_AFTER = 1; 80 const unsigned short NODE_AFTER = 1;
83 const unsigned short NODE_BEFORE_AND_AFTER = 2; 81 const unsigned short NODE_BEFORE_AND_AFTER = 2;
84 const unsigned short NODE_INSIDE = 3; 82 const unsigned short NODE_INSIDE = 3;
85 83
86 [RaisesException] short comparePoint([Default=Undefined] optional Node refNo de, 84 [RaisesException] short compareNode([Default=Undefined] optional Node refNod e);
87 [Default=Undefined] optional long offset);
88
89 [RaisesException] boolean isPointInRange([Default=Undefined] optional Node r efNode,
90 [Default=Undefined] optional long offset);
91 85
92 [RaisesException] void expand([Default=Undefined] optional DOMString unit); 86 [RaisesException] void expand([Default=Undefined] optional DOMString unit);
93 }; 87 };
94
OLDNEW
« no previous file with comments | « core/dom/Promise.idl ('k') | core/dom/RequestAnimationFrameCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698