| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 bool isSpellCheckingEnabled() const; | 59 bool isSpellCheckingEnabled() const; |
| 60 void toggleSpellCheckingEnabled(); | 60 void toggleSpellCheckingEnabled(); |
| 61 void ignoreSpelling(); | 61 void ignoreSpelling(); |
| 62 bool isSpellCheckingEnabledInFocusedNode() const; | 62 bool isSpellCheckingEnabledInFocusedNode() const; |
| 63 void markMisspellingsAfterApplyingCommand(const CompositeEditCommand&); | 63 void markMisspellingsAfterApplyingCommand(const CompositeEditCommand&); |
| 64 void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&
); | 64 void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&
); |
| 65 void advanceToNextMisspelling(bool startBeforeSelection = false); | 65 void advanceToNextMisspelling(bool startBeforeSelection = false); |
| 66 void showSpellingGuessPanel(); | 66 void showSpellingGuessPanel(); |
| 67 void didBeginEditing(Element*); | 67 void didBeginEditing(Element*); |
| 68 void clearMisspellingsAndBadGrammar(const VisibleSelection&); | 68 void clearMisspellingsAndBadGrammarForMovingParagraphs(const VisibleSelectio
n&); |
| 69 void markMisspellingsAndBadGrammar(const VisibleSelection&); | 69 void markMisspellingsAndBadGrammarForMovingParagraphs(const VisibleSelection
&); |
| 70 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); | 70 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); |
| 71 void replaceMisspelledRange(const String&); | 71 void replaceMisspelledRange(const String&); |
| 72 void removeSpellingMarkers(); | 72 void removeSpellingMarkers(); |
| 73 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 73 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
| 74 void spellCheckAfterBlur(); | 74 void spellCheckAfterBlur(); |
| 75 | 75 |
| 76 void didEndEditingOnTextField(Element*); | 76 void didEndEditingOnTextField(Element*); |
| 77 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le
ngth) const; | 77 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le
ngth) const; |
| 78 bool selectionStartHasSpellingMarkerFor(int from, int length) const; | 78 bool selectionStartHasSpellingMarkerFor(int from, int length) const; |
| 79 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe
lection); | 79 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe
lection); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 104 Vector<TextCheckingResult> findMisspellings(const String&); | 104 Vector<TextCheckingResult> findMisspellings(const String&); |
| 105 std::pair<String, int> findFirstMisspelling(const Position&, const Position&
); | 105 std::pair<String, int> findFirstMisspelling(const Position&, const Position&
); |
| 106 | 106 |
| 107 void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection); | 107 void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection); |
| 108 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart); | 108 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart); |
| 109 void markMisspellingsAfterTypingCommand(const TypingCommand&); | 109 void markMisspellingsAfterTypingCommand(const TypingCommand&); |
| 110 void markMisspellingsAfterReplaceSelectionCommand(const ReplaceSelectionComm
and&); | 110 void markMisspellingsAfterReplaceSelectionCommand(const ReplaceSelectionComm
and&); |
| 111 | 111 |
| 112 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); | 112 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); |
| 113 | 113 |
| 114 void markMisspellingsAndBadGrammar(const VisibleSelection&); |
| 114 void chunkAndMarkAllMisspellingsAndBadGrammar(const TextCheckingParagraph& f
ullParagraphToCheck); | 115 void chunkAndMarkAllMisspellingsAndBadGrammar(const TextCheckingParagraph& f
ullParagraphToCheck); |
| 115 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi
bleSelection& newAdjacentWords); | 116 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi
bleSelection& newAdjacentWords); |
| 116 | 117 |
| 117 Member<LocalFrame> m_frame; | 118 Member<LocalFrame> m_frame; |
| 118 const Member<SpellCheckRequester> m_spellCheckRequester; | 119 const Member<SpellCheckRequester> m_spellCheckRequester; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace blink | 122 } // namespace blink |
| 122 | 123 |
| 123 #endif // SpellChecker_h | 124 #endif // SpellChecker_h |
| OLD | NEW |