| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // not mean that they are base/extent, since the base/extent don't reflect | 73 // not mean that they are base/extent, since the base/extent don't reflect |
| 74 // expansion. | 74 // expansion. |
| 75 // These methods return the valid equivalents of internal editing positions. | 75 // These methods return the valid equivalents of internal editing positions. |
| 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 collapse(Node*, ExceptionState&); | |
| 84 void collapseToEnd(ExceptionState&); | 83 void collapseToEnd(ExceptionState&); |
| 85 void collapseToStart(ExceptionState&); | 84 void collapseToStart(ExceptionState&); |
| 86 void extend(Node*, int offset, ExceptionState&); | 85 void extend(Node*, int offset, ExceptionState&); |
| 87 void extend(Node*, ExceptionState&); | |
| 88 PassRefPtrWillBeRawPtr<Range> getRangeAt(int, ExceptionState&); | 86 PassRefPtrWillBeRawPtr<Range> getRangeAt(int, ExceptionState&); |
| 89 void removeAllRanges(); | 87 void removeAllRanges(); |
| 90 void addRange(Range*); | 88 void addRange(Range*); |
| 91 void deleteFromDocument(); | 89 void deleteFromDocument(); |
| 92 bool containsNode(const Node*, bool partlyContained) const; | 90 bool containsNode(const Node*, bool partlyContained) const; |
| 93 void selectAllChildren(Node*, ExceptionState&); | 91 void selectAllChildren(Node*, ExceptionState&); |
| 94 | 92 |
| 95 String toString(); | 93 String toString(); |
| 96 | 94 |
| 97 // Microsoft Selection Object API | 95 // Microsoft Selection Object API |
| (...skipping 13 matching lines...) Expand all Loading... |
| 111 bool isValidForPosition(Node*) const; | 109 bool isValidForPosition(Node*) const; |
| 112 | 110 |
| 113 void addConsoleError(const String& message); | 111 void addConsoleError(const String& message); |
| 114 | 112 |
| 115 RawPtrWillBeMember<const TreeScope> m_treeScope; | 113 RawPtrWillBeMember<const TreeScope> m_treeScope; |
| 116 }; | 114 }; |
| 117 | 115 |
| 118 } // namespace blink | 116 } // namespace blink |
| 119 | 117 |
| 120 #endif // DOMSelection_h | 118 #endif // DOMSelection_h |
| OLD | NEW |