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

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

Issue 2211813002: Revert removal of grammar checking and marking code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix 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/TextCheckingHelper.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h
index 0d85d37ae67038ec798c0ba956f072756e79d735..a7c9a204ab31603c16219323f2d01d87efb89fe6 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h
@@ -89,13 +89,17 @@ public:
~TextCheckingHelper();
String findFirstMisspelling(int& firstMisspellingOffset, bool markAll);
+ String findFirstMisspellingOrBadGrammar(bool& outIsSpelling, int& outFirstFoundOffset, GrammarDetail& outGrammarDetail);
+ String findFirstBadGrammar(GrammarDetail& outGrammarDetail, int& outGrammarPhraseOffset, bool markAll);
bool markAllMisspellings();
+ void markAllBadGrammar();
private:
SpellCheckerClient* m_client;
Position m_start;
Position m_end;
+ int findFirstGrammarDetail(const Vector<GrammarDetail>& grammarDetails, int badGrammarPhraseLocation, int startOffset, int endOffset, bool markAll) const;
bool unifiedTextCheckerEnabled() const;
};

Powered by Google App Engine
This is Rietveld 408576698