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

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

Issue 23014006: Roll IDL to multivm@1350 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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/PromiseResolver.idl ('k') | core/dom/Text.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=ScriptExecutionContext 24 ConstructorCallWith=Document
25 ] interface Range { 25 ] interface Range {
26 26
27 [GetterRaisesException] readonly attribute Node startContainer; 27 [GetterRaisesException] readonly attribute Node startContainer;
28 [GetterRaisesException] readonly attribute long startOffset; 28 [GetterRaisesException] readonly attribute long startOffset;
29 [GetterRaisesException] readonly attribute Node endContainer; 29 [GetterRaisesException] readonly attribute Node endContainer;
30 [GetterRaisesException] readonly attribute long endOffset; 30 [GetterRaisesException] readonly attribute long endOffset;
31 [GetterRaisesException] readonly attribute boolean collapsed; 31 [GetterRaisesException] readonly attribute boolean collapsed;
32 [GetterRaisesException] readonly attribute Node commonAncestorContainer; 32 [GetterRaisesException] readonly attribute Node commonAncestorContainer;
33 33
34 [RaisesException] void setStart([Default=Undefined] optional Node refNode, 34 [RaisesException] void setStart([Default=Undefined] optional Node refNode,
(...skipping 10 matching lines...) Expand all
45 45
46 // CompareHow 46 // CompareHow
47 const unsigned short START_TO_START = 0; 47 const unsigned short START_TO_START = 0;
48 const unsigned short START_TO_END = 1; 48 const unsigned short START_TO_END = 1;
49 const unsigned short END_TO_END = 2; 49 const unsigned short END_TO_END = 2;
50 const unsigned short END_TO_START = 3; 50 const unsigned short END_TO_START = 3;
51 51
52 [RaisesException] short compareBoundaryPoints([Default=Undefined] optional CompareHow how, 52 [RaisesException] short compareBoundaryPoints([Default=Undefined] optional CompareHow how,
53 [Default=Undefined] optional Rang e sourceRange); 53 [Default=Undefined] optional Rang e sourceRange);
54 54
55 [RaisesException] void deleteContents(); 55 [RaisesException, CustomElementCallbacks=Enable] void deleteContents();
56 [RaisesException] DocumentFragment extractContents(); 56 [RaisesException, CustomElementCallbacks=Enable] DocumentFragment extractCon tents();
57 [RaisesException] DocumentFragment cloneContents(); 57 [RaisesException, CustomElementCallbacks=Enable] DocumentFragment cloneConte nts();
58 [RaisesException] void insertNode([Default=Undefined] optional Node newNode) ; 58 [RaisesException, CustomElementCallbacks=Enable] void insertNode([Default=Un defined] optional Node newNode);
59 [RaisesException] void surroundContents([Default=Undefined] optional Node ne wParent); 59 [RaisesException, CustomElementCallbacks=Enable] void surroundContents([Defa ult=Undefined] optional Node newParent);
60 [RaisesException] Range cloneRange(); 60 [RaisesException] Range cloneRange();
61 [RaisesException] DOMString toString(); 61 [RaisesException] DOMString toString();
62 62
63 [RaisesException] void detach(); 63 [RaisesException] void detach();
64 64
65 // CSSOM View Module API extensions 65 // CSSOM View Module API extensions
66 66
67 ClientRectList getClientRects(); 67 ClientRectList getClientRects();
68 ClientRect getBoundingClientRect(); 68 ClientRect getBoundingClientRect();
69 69
70 // extensions 70 // extensions
71 71
72 [RaisesException] DocumentFragment createContextualFragment([Default=Undefin ed] optional DOMString html); 72 [RaisesException, CustomElementCallbacks=Enable] DocumentFragment createCont extualFragment([Default=Undefined] optional DOMString html);
73 73
74 // WebKit extensions 74 // WebKit extensions
75 75
76 [RaisesException] boolean intersectsNode([Default=Undefined] optional Node r efNode); 76 [RaisesException] boolean intersectsNode([Default=Undefined] optional Node r efNode);
77 77
78 [RaisesException] short compareNode([Default=Undefined] optional Node refNod e); 78 [RaisesException] short compareNode([Default=Undefined] optional Node refNod e);
79 79
80 // CompareResults 80 // CompareResults
81 const unsigned short NODE_BEFORE = 0; 81 const unsigned short NODE_BEFORE = 0;
82 const unsigned short NODE_AFTER = 1; 82 const unsigned short NODE_AFTER = 1;
83 const unsigned short NODE_BEFORE_AND_AFTER = 2; 83 const unsigned short NODE_BEFORE_AND_AFTER = 2;
84 const unsigned short NODE_INSIDE = 3; 84 const unsigned short NODE_INSIDE = 3;
85 85
86 [RaisesException] short comparePoint([Default=Undefined] optional Node refNo de, 86 [RaisesException] short comparePoint([Default=Undefined] optional Node refNo de,
87 [Default=Undefined] optional long offset); 87 [Default=Undefined] optional long offset);
88 88
89 [RaisesException] boolean isPointInRange([Default=Undefined] optional Node r efNode, 89 [RaisesException] boolean isPointInRange([Default=Undefined] optional Node r efNode,
90 [Default=Undefined] optional long offset); 90 [Default=Undefined] optional long offset);
91 91
92 [RaisesException] void expand([Default=Undefined] optional DOMString unit); 92 [RaisesException] void expand([Default=Undefined] optional DOMString unit);
93 }; 93 };
94 94
OLDNEW
« no previous file with comments | « core/dom/PromiseResolver.idl ('k') | core/dom/Text.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698