Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: Source/core/editing/iterators/TextIterator.h

Issue 1214293002: Get rid of findPlainText() with Range parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-30T15:11:38 Get rid of unused function collapsedToBoundary() Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009 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 25 matching lines...) Expand all
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class InlineTextBox; 40 class InlineTextBox;
41 class LayoutText; 41 class LayoutText;
42 class LayoutTextFragment; 42 class LayoutTextFragment;
43 43
44 CORE_EXPORT String plainText(const Range*, TextIteratorBehaviorFlags = TextItera torDefaultBehavior); 44 CORE_EXPORT String plainText(const Range*, TextIteratorBehaviorFlags = TextItera torDefaultBehavior);
45 String plainText(const Position& start, const Position& end, TextIteratorBehavio rFlags = TextIteratorDefaultBehavior); 45 String plainText(const Position& start, const Position& end, TextIteratorBehavio rFlags = TextIteratorDefaultBehavior);
46 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> findPlainText(const Range*, const Stri ng&, FindOptions);
47 CORE_EXPORT void findPlainText(const Position& inputStart, const Position& input End, const String&, FindOptions, Position& resultStart, Position& resultEnd); 46 CORE_EXPORT void findPlainText(const Position& inputStart, const Position& input End, const String&, FindOptions, Position& resultStart, Position& resultEnd);
48 47
49 String plainText(const PositionInComposedTree& start, const PositionInComposedTr ee& end, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior); 48 String plainText(const PositionInComposedTree& start, const PositionInComposedTr ee& end, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
50 49
51 // Iterates through the DOM range, returning all the text, and 0-length boundari es 50 // Iterates through the DOM range, returning all the text, and 0-length boundari es
52 // at points where replaced elements break up the text flow. The text comes bac k in 51 // at points where replaced elements break up the text flow. The text comes bac k in
53 // chunks so as to optimize for performance of the iteration. 52 // chunks so as to optimize for performance of the iteration.
54 53
55 template<typename Strategy> 54 template<typename Strategy>
56 class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm { 55 class CORE_TEMPLATE_CLASS_EXPORT TextIteratorAlgorithm {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 186
188 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingS trategy>; 187 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingS trategy>;
189 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingI nComposedTreeStrategy>; 188 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingI nComposedTreeStrategy>;
190 189
191 using TextIterator = TextIteratorAlgorithm<EditingStrategy>; 190 using TextIterator = TextIteratorAlgorithm<EditingStrategy>;
192 using TextIteratorInComposedTree = TextIteratorAlgorithm<EditingInComposedTreeSt rategy>; 191 using TextIteratorInComposedTree = TextIteratorAlgorithm<EditingInComposedTreeSt rategy>;
193 192
194 } // namespace blink 193 } // namespace blink
195 194
196 #endif // TextIterator_h 195 #endif // TextIterator_h
OLDNEW
« no previous file with comments | « Source/core/editing/iterators/CharacterIterator.cpp ('k') | Source/core/editing/iterators/TextIteratorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698