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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 unsigned anchorOffset() const; | 83 unsigned anchorOffset() const; |
84 Node* focusNode() const; | 84 Node* focusNode() const; |
85 unsigned focusOffset() const; | 85 unsigned focusOffset() const; |
86 bool isCollapsed() const; | 86 bool isCollapsed() const; |
87 unsigned rangeCount() const; | 87 unsigned rangeCount() const; |
88 void collapse(Node*, unsigned offset, ExceptionState&); | 88 void collapse(Node*, unsigned offset, ExceptionState&); |
89 void collapseToEnd(ExceptionState&); | 89 void collapseToEnd(ExceptionState&); |
90 void collapseToStart(ExceptionState&); | 90 void collapseToStart(ExceptionState&); |
91 void extend(Node*, unsigned offset, ExceptionState&); | 91 void extend(Node*, unsigned offset, ExceptionState&); |
92 Range* getRangeAt(unsigned, ExceptionState&) const; | 92 Range* getRangeAt(unsigned, ExceptionState&) const; |
| 93 void removeRange(Range*); |
93 void removeAllRanges(); | 94 void removeAllRanges(); |
94 void addRange(Range*); | 95 void addRange(Range*); |
95 void deleteFromDocument(); | 96 void deleteFromDocument(); |
96 bool containsNode(const Node*, bool partlyContained) const; | 97 bool containsNode(const Node*, bool partlyContained) const; |
97 void selectAllChildren(Node*, ExceptionState&); | 98 void selectAllChildren(Node*, ExceptionState&); |
98 | 99 |
99 String toString(); | 100 String toString(); |
100 | 101 |
101 // Microsoft Selection Object API | 102 // Microsoft Selection Object API |
102 void empty(); | 103 void empty(); |
(...skipping 24 matching lines...) Expand all Loading... |
127 void cacheRangeIfSelectionOfDocument(Range*) const; | 128 void cacheRangeIfSelectionOfDocument(Range*) const; |
128 Range* documentCachedRange() const; | 129 Range* documentCachedRange() const; |
129 void clearCachedRangeIfSelectionOfDocument(); | 130 void clearCachedRangeIfSelectionOfDocument(); |
130 | 131 |
131 Member<const TreeScope> m_treeScope; | 132 Member<const TreeScope> m_treeScope; |
132 }; | 133 }; |
133 | 134 |
134 } // namespace blink | 135 } // namespace blink |
135 | 136 |
136 #endif // DOMSelection_h | 137 #endif // DOMSelection_h |
OLD | NEW |