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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h

Issue 2247003005: Eliminate class TextCheckingHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CleanupUnifiedTextChecker
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h
similarity index 81%
rename from third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h
rename to third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h
index bda4e316a10fb04e51013e4644590db36b572d57..399e7a0fb174a3bb03b27f8bc987bba9c6f59a44 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h
@@ -18,22 +18,16 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef TextCheckingHelper_h
-#define TextCheckingHelper_h
+#ifndef TextCheckingParagraph_h
+#define TextCheckingParagraph_h
#include "core/editing/EphemeralRange.h"
#include "core/editing/Position.h"
-#include "platform/heap/Handle.h"
-#include "platform/text/TextChecking.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class LocalFrame;
class Range;
-class SpellCheckerClient;
-class TextCheckerClient;
-struct TextCheckingResult;
class TextCheckingParagraph {
STACK_ALLOCATED();
@@ -81,21 +75,6 @@ private:
mutable int m_checkingLength;
};
-class TextCheckingHelper {
- WTF_MAKE_NONCOPYABLE(TextCheckingHelper);
- STACK_ALLOCATED();
-public:
- TextCheckingHelper(SpellCheckerClient&, const Position& start, const Position& end);
- ~TextCheckingHelper();
-
- String findFirstMisspellingOrBadGrammar(int& outFirstFoundOffset);
-
-private:
- SpellCheckerClient* m_client;
- Position m_start;
- Position m_end;
-};
-
} // namespace blink
-#endif // TextCheckingHelper_h
+#endif // TextCheckingParagraph_h

Powered by Google App Engine
This is Rietveld 408576698