| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool isSpellCheckingEnabledInFocusedNode() const; | 63 bool isSpellCheckingEnabledInFocusedNode() const; |
| 64 void markMisspellingsAfterApplyingCommand(const CompositeEditCommand&); | 64 void markMisspellingsAfterApplyingCommand(const CompositeEditCommand&); |
| 65 void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&); | 65 void markAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&); |
| 66 void advanceToNextMisspelling(bool startBeforeSelection = false); | 66 void advanceToNextMisspelling(bool startBeforeSelection = false); |
| 67 void showSpellingGuessPanel(); | 67 void showSpellingGuessPanel(); |
| 68 void didBeginEditing(Element*); | 68 void didBeginEditing(Element*); |
| 69 void clearMisspellingsAndBadGrammarForMovingParagraphs( | 69 void clearMisspellingsAndBadGrammarForMovingParagraphs( |
| 70 const VisibleSelection&); | 70 const VisibleSelection&); |
| 71 void markMisspellingsAndBadGrammarForMovingParagraphs( | 71 void markMisspellingsAndBadGrammarForMovingParagraphs( |
| 72 const VisibleSelection&); | 72 const VisibleSelection&); |
| 73 void respondToChangedSelection(const VisibleSelection& oldSelection, | 73 void respondToChangedSelection(const Position& oldSelectionStart, |
| 74 FrameSelection::SetSelectionOptions); | 74 FrameSelection::SetSelectionOptions); |
| 75 void replaceMisspelledRange(const String&); | 75 void replaceMisspelledRange(const String&); |
| 76 void removeSpellingMarkers(); | 76 void removeSpellingMarkers(); |
| 77 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 77 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
| 78 void spellCheckAfterBlur(); | 78 void spellCheckAfterBlur(); |
| 79 | 79 |
| 80 void didEndEditingOnTextField(Element*); | 80 void didEndEditingOnTextField(Element*); |
| 81 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, | 81 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, |
| 82 int from, | 82 int from, |
| 83 int length) const; | 83 int length) const; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void markMisspellingsAfterTypingToWord(const VisiblePosition& wordStart); | 116 void markMisspellingsAfterTypingToWord(const VisiblePosition& wordStart); |
| 117 void markMisspellingsAfterTypingCommand(const TypingCommand&); | 117 void markMisspellingsAfterTypingCommand(const TypingCommand&); |
| 118 void markMisspellingsAfterReplaceSelectionCommand( | 118 void markMisspellingsAfterReplaceSelectionCommand( |
| 119 const ReplaceSelectionCommand&); | 119 const ReplaceSelectionCommand&); |
| 120 | 120 |
| 121 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); | 121 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); |
| 122 | 122 |
| 123 void markMisspellingsAndBadGrammar(const VisibleSelection&); | 123 void markMisspellingsAndBadGrammar(const VisibleSelection&); |
| 124 void chunkAndMarkAllMisspellingsAndBadGrammar( | 124 void chunkAndMarkAllMisspellingsAndBadGrammar( |
| 125 const TextCheckingParagraph& fullParagraphToCheck); | 125 const TextCheckingParagraph& fullParagraphToCheck); |
| 126 void spellCheckOldSelection(const VisibleSelection& oldSelection, | 126 void spellCheckOldSelection(const Position& oldSelectionStart, |
| 127 const VisibleSelection& newAdjacentWords); | 127 const VisibleSelection& newAdjacentWords); |
| 128 | 128 |
| 129 Member<LocalFrame> m_frame; | 129 Member<LocalFrame> m_frame; |
| 130 const Member<SpellCheckRequester> m_spellCheckRequester; | 130 const Member<SpellCheckRequester> m_spellCheckRequester; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace blink | 133 } // namespace blink |
| 134 | 134 |
| 135 #endif // SpellChecker_h | 135 #endif // SpellChecker_h |
| OLD | NEW |