OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); } | 142 void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); } |
143 | 143 |
144 void didChangeFocus(); | 144 void didChangeFocus(); |
145 void willBeModified(EAlteration, SelectionDirection); | 145 void willBeModified(EAlteration, SelectionDirection); |
146 | 146 |
147 bool isNone() const { return m_selection.isNone(); } | 147 bool isNone() const { return m_selection.isNone(); } |
148 bool isCaret() const { return m_selection.isCaret(); } | 148 bool isCaret() const { return m_selection.isCaret(); } |
149 bool isRange() const { return m_selection.isRange(); } | 149 bool isRange() const { return m_selection.isRange(); } |
150 bool isCaretOrRange() const { return m_selection.isCaretOrRange(); } | 150 bool isCaretOrRange() const { return m_selection.isCaretOrRange(); } |
151 bool isInPasswordField() const; | 151 bool isInPasswordField() const; |
| 152 bool isInTextField() const; |
152 bool isDirectional() const { return m_selection.isDirectional(); } | 153 bool isDirectional() const { return m_selection.isDirectional(); } |
153 | 154 |
154 // If this FrameSelection has a logical range which is still valid, this fun
ction return its clone. Otherwise, | 155 // If this FrameSelection has a logical range which is still valid, this fun
ction return its clone. Otherwise, |
155 // the return value from underlying VisibleSelection's firstRange() is retur
ned. | 156 // the return value from underlying VisibleSelection's firstRange() is retur
ned. |
156 PassRefPtrWillBeRawPtr<Range> firstRange() const; | 157 PassRefPtrWillBeRawPtr<Range> firstRange() const; |
157 | 158 |
158 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const { return m_selection
.toNormalizedRange(); } | 159 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const { return m_selection
.toNormalizedRange(); } |
159 | 160 |
160 void nodeWillBeRemoved(Node&); | 161 void nodeWillBeRemoved(Node&); |
161 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen
gth, unsigned newLength); | 162 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen
gth, unsigned newLength); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 301 } |
301 } // namespace WebCore | 302 } // namespace WebCore |
302 | 303 |
303 #ifndef NDEBUG | 304 #ifndef NDEBUG |
304 // Outside the WebCore namespace for ease of invocation from gdb. | 305 // Outside the WebCore namespace for ease of invocation from gdb. |
305 void showTree(const WebCore::FrameSelection&); | 306 void showTree(const WebCore::FrameSelection&); |
306 void showTree(const WebCore::FrameSelection*); | 307 void showTree(const WebCore::FrameSelection*); |
307 #endif | 308 #endif |
308 | 309 |
309 #endif // FrameSelection_h | 310 #endif // FrameSelection_h |
OLD | NEW |