Commit 01554f3c authored by xiaochengh's avatar xiaochengh Committed by Commit bot

Hide some member functions of SpellChecker as private

This patch hides the following member functions of SpellChecker as
private because they are only used by SpellChecker itself:

bool markMisspellings(const VisibleSelection&);
void markBadGrammar(const VisibleSelection&);
bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpelling);
void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection, bool markGrammar, const VisibleSelection& grammarSelection);
void spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords);

This patch is a preparation for cleaning up grammar checking code from
SpellChecker.

BUG=619452
TEST=n/a; no behavior change

Review-Url: https://codereview.chromium.org/2198733003
Cr-Commit-Position: refs/heads/master@{#408912}
parent 44556d9c
...@@ -61,11 +61,7 @@ public: ...@@ -61,11 +61,7 @@ public:
static bool isSpellCheckingEnabledFor(const VisibleSelection&); static bool isSpellCheckingEnabledFor(const VisibleSelection&);
void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection); void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection);
void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, const VisibleSelection& selectionAfterTyping); void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, const VisibleSelection& selectionAfterTyping);
bool markMisspellings(const VisibleSelection&);
void markBadGrammar(const VisibleSelection&);
void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection, bool markGrammar, const VisibleSelection& grammarSelection);
void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&); void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&);
void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, const EphemeralRange& spellingRange, const EphemeralRange& grammarRange);
void advanceToNextMisspelling(bool startBeforeSelection = false); void advanceToNextMisspelling(bool startBeforeSelection = false);
void showSpellingGuessPanel(); void showSpellingGuessPanel();
void didBeginEditing(Element*); void didBeginEditing(Element*);
...@@ -76,7 +72,6 @@ public: ...@@ -76,7 +72,6 @@ public:
void removeSpellingMarkers(); void removeSpellingMarkers();
void removeSpellingMarkersUnderWords(const Vector<String>& words); void removeSpellingMarkersUnderWords(const Vector<String>& words);
void spellCheckAfterBlur(); void spellCheckAfterBlur();
void spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords);
void didEndEditingOnTextField(Element*); void didEndEditingOnTextField(Element*);
bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int length) const; bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int length) const;
...@@ -106,7 +101,13 @@ private: ...@@ -106,7 +101,13 @@ private:
return *m_frame; return *m_frame;
} }
bool markMisspellings(const VisibleSelection&);
void markBadGrammar(const VisibleSelection&);
bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpelling); bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpelling);
void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection, bool markGrammar, const VisibleSelection& grammarSelection);
void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, const EphemeralRange& spellingRange, const EphemeralRange& grammarRange);
void spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords);
TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask);
void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment