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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 EphemeralRangeTemplate<Strategy> toNormalizedEphemeralRange() const; | 295 EphemeralRangeTemplate<Strategy> toNormalizedEphemeralRange() const; |
296 | 296 |
297 void setBase(const PositionAlgorithm<Strategy>&); | 297 void setBase(const PositionAlgorithm<Strategy>&); |
298 void setBase(const VisiblePositionTemplate<Strategy>&); | 298 void setBase(const VisiblePositionTemplate<Strategy>&); |
299 void setExtent(const PositionAlgorithm<Strategy>&); | 299 void setExtent(const PositionAlgorithm<Strategy>&); |
300 void setExtent(const VisiblePositionTemplate<Strategy>&); | 300 void setExtent(const VisiblePositionTemplate<Strategy>&); |
301 void setIsDirectional(bool isDirectional) { m_visibleSelection.setIsDirectio
nal(isDirectional); } | 301 void setIsDirectional(bool isDirectional) { m_visibleSelection.setIsDirectio
nal(isDirectional); } |
302 void setWithoutValidation(const PositionAlgorithm<Strategy>& base, const Pos
itionAlgorithm<Strategy>& extent); | 302 void setWithoutValidation(const PositionAlgorithm<Strategy>& base, const Pos
itionAlgorithm<Strategy>& extent); |
303 | 303 |
| 304 void appendTrailingWhitespace(); |
304 bool expandUsingGranularity(TextGranularity); | 305 bool expandUsingGranularity(TextGranularity); |
| 306 static VisibleSelectionTemplate<Strategy> selectionFromContentsOfNode(Node*)
; |
305 | 307 |
306 DEFINE_INLINE_TRACE() | 308 DEFINE_INLINE_TRACE() |
307 { | 309 { |
308 visitor->trace(m_visibleSelection); | 310 visitor->trace(m_visibleSelection); |
309 } | 311 } |
310 | 312 |
311 private: | 313 private: |
312 VisibleSelection m_visibleSelection; | 314 VisibleSelection m_visibleSelection; |
313 }; | 315 }; |
314 | 316 |
(...skipping 23 matching lines...) Expand all Loading... |
338 | 340 |
339 } // namespace blink | 341 } // namespace blink |
340 | 342 |
341 #ifndef NDEBUG | 343 #ifndef NDEBUG |
342 // Outside the WebCore namespace for ease of invocation from gdb. | 344 // Outside the WebCore namespace for ease of invocation from gdb. |
343 void showTree(const blink::VisibleSelection&); | 345 void showTree(const blink::VisibleSelection&); |
344 void showTree(const blink::VisibleSelection*); | 346 void showTree(const blink::VisibleSelection*); |
345 #endif | 347 #endif |
346 | 348 |
347 #endif // VisibleSelection_h | 349 #endif // VisibleSelection_h |
OLD | NEW |