OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // these are cached, can be recalculated by validate() | 249 // these are cached, can be recalculated by validate() |
250 SelectionType m_selectionType; // None, Caret, Range | 250 SelectionType m_selectionType; // None, Caret, Range |
251 bool m_baseIsFirst : 1; // True if base is before the extent | 251 bool m_baseIsFirst : 1; // True if base is before the extent |
252 bool m_isDirectional : 1; // Non-directional ignores m_baseIsFirst and selec
tion always extends on shift + arrow key. | 252 bool m_isDirectional : 1; // Non-directional ignores m_baseIsFirst and selec
tion always extends on shift + arrow key. |
253 }; | 253 }; |
254 | 254 |
255 // We don't yet support multi-range selections, so we only ever have one range | 255 // We don't yet support multi-range selections, so we only ever have one range |
256 // to return. | 256 // to return. |
257 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> firstRangeOf(const VisibleSelection&); | 257 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> firstRangeOf(const VisibleSelection&); |
258 | 258 |
259 // TODO(yosin) We should move |intersectsNode()| to "FrameSelection.cpp". | |
260 bool intersectsNode(const VisibleSelection&, Node*); | |
261 | |
262 } // namespace blink | 259 } // namespace blink |
263 | 260 |
264 #ifndef NDEBUG | 261 #ifndef NDEBUG |
265 // Outside the WebCore namespace for ease of invocation from gdb. | 262 // Outside the WebCore namespace for ease of invocation from gdb. |
266 void showTree(const blink::VisibleSelection&); | 263 void showTree(const blink::VisibleSelection&); |
267 void showTree(const blink::VisibleSelection*); | 264 void showTree(const blink::VisibleSelection*); |
268 #endif | 265 #endif |
269 | 266 |
270 #endif // VisibleSelection_h | 267 #endif // VisibleSelection_h |
OLD | NEW |