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) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 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 15 matching lines...) Expand all Loading... |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 | 30 |
31 #ifndef DOMSelection_h | 31 #ifndef DOMSelection_h |
32 #define DOMSelection_h | 32 #define DOMSelection_h |
33 | 33 |
34 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
35 #include "core/frame/DOMWindowProperty.h" | 35 #include "core/frame/DOMWindowProperty.h" |
36 #include "heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 class ExceptionState; | 43 class ExceptionState; |
44 class LocalFrame; | 44 class LocalFrame; |
45 class Node; | 45 class Node; |
46 class Position; | 46 class Position; |
(...skipping 29 matching lines...) Expand all Loading... |
76 Node* anchorNode() const; | 76 Node* anchorNode() const; |
77 int anchorOffset() const; | 77 int anchorOffset() const; |
78 Node* focusNode() const; | 78 Node* focusNode() const; |
79 int focusOffset() const; | 79 int focusOffset() const; |
80 bool isCollapsed() const; | 80 bool isCollapsed() const; |
81 int rangeCount() const; | 81 int rangeCount() const; |
82 void collapse(Node*, int offset, ExceptionState&); | 82 void collapse(Node*, int offset, ExceptionState&); |
83 void collapseToEnd(ExceptionState&); | 83 void collapseToEnd(ExceptionState&); |
84 void collapseToStart(ExceptionState&); | 84 void collapseToStart(ExceptionState&); |
85 void extend(Node*, int offset, ExceptionState&); | 85 void extend(Node*, int offset, ExceptionState&); |
86 PassRefPtr<Range> getRangeAt(int, ExceptionState&); | 86 PassRefPtrWillBeRawPtr<Range> getRangeAt(int, ExceptionState&); |
87 void removeAllRanges(); | 87 void removeAllRanges(); |
88 void addRange(Range*); | 88 void addRange(Range*); |
89 void deleteFromDocument(); | 89 void deleteFromDocument(); |
90 bool containsNode(const Node*, bool partlyContained) const; | 90 bool containsNode(const Node*, bool partlyContained) const; |
91 void selectAllChildren(Node*, ExceptionState&); | 91 void selectAllChildren(Node*, ExceptionState&); |
92 | 92 |
93 String toString(); | 93 String toString(); |
94 | 94 |
95 // Microsoft Selection Object API | 95 // Microsoft Selection Object API |
96 void empty(); | 96 void empty(); |
(...skipping 12 matching lines...) Expand all Loading... |
109 bool isValidForPosition(Node*) const; | 109 bool isValidForPosition(Node*) const; |
110 | 110 |
111 void addConsoleError(const String& message); | 111 void addConsoleError(const String& message); |
112 | 112 |
113 const TreeScope* m_treeScope; | 113 const TreeScope* m_treeScope; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace WebCore | 116 } // namespace WebCore |
117 | 117 |
118 #endif // DOMSelection_h | 118 #endif // DOMSelection_h |
OLD | NEW |