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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Convenience method for accessors, does not check m_frame present. | 111 // Convenience method for accessors, does not check m_frame present. |
112 const VisibleSelection& visibleSelection() const; | 112 const VisibleSelection& visibleSelection() const; |
113 | 113 |
114 Node* shadowAdjustedNode(const Position&) const; | 114 Node* shadowAdjustedNode(const Position&) const; |
115 int shadowAdjustedOffset(const Position&) const; | 115 int shadowAdjustedOffset(const Position&) const; |
116 | 116 |
117 bool isValidForPosition(Node*) const; | 117 bool isValidForPosition(Node*) const; |
118 | 118 |
119 void addConsoleError(const String& message); | 119 void addConsoleError(const String& message); |
120 | 120 |
| 121 Range* createRangeFromSelectionEditor(); |
| 122 |
| 123 bool isSelectionOfDocument() const; |
| 124 void cacheRangeIfSelectionOfDocument(Range*); |
| 125 Range* documentCachedRange() const; |
| 126 void clearCachedRangeIfSelectionOfDocument(); |
| 127 |
121 Member<const TreeScope> m_treeScope; | 128 Member<const TreeScope> m_treeScope; |
122 }; | 129 }; |
123 | 130 |
124 } // namespace blink | 131 } // namespace blink |
125 | 132 |
126 #endif // DOMSelection_h | 133 #endif // DOMSelection_h |
OLD | NEW |