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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void markAndReplaceFor(PassRefPtr<SpellCheckRequest>, const Vector<TextCheck
ingResult>&); | 65 void markAndReplaceFor(PassRefPtr<SpellCheckRequest>, const Vector<TextCheck
ingResult>&); |
66 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, Range* s
pellingRange, Range* grammarRange); | 66 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, Range* s
pellingRange, Range* grammarRange); |
67 void advanceToNextMisspelling(bool startBeforeSelection = false); | 67 void advanceToNextMisspelling(bool startBeforeSelection = false); |
68 void showSpellingGuessPanel(); | 68 void showSpellingGuessPanel(); |
69 void didBeginEditing(Element*); | 69 void didBeginEditing(Element*); |
70 void clearMisspellingsAndBadGrammar(const VisibleSelection&); | 70 void clearMisspellingsAndBadGrammar(const VisibleSelection&); |
71 void markMisspellingsAndBadGrammar(const VisibleSelection&); | 71 void markMisspellingsAndBadGrammar(const VisibleSelection&); |
72 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); | 72 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); |
73 void replaceMisspelledRange(const String&); | 73 void replaceMisspelledRange(const String&); |
74 void removeSpellingMarkers(); | 74 void removeSpellingMarkers(); |
| 75 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
75 void spellCheckAfterBlur(); | 76 void spellCheckAfterBlur(); |
76 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi
bleSelection& newAdjacentWords); | 77 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi
bleSelection& newAdjacentWords); |
77 | 78 |
78 void didEndEditingOnTextField(Element*); | 79 void didEndEditingOnTextField(Element*); |
79 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le
ngth) const; | 80 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le
ngth) const; |
80 bool selectionStartHasSpellingMarkerFor(int from, int length) const; | 81 bool selectionStartHasSpellingMarkerFor(int from, int length) const; |
81 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe
lection); | 82 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe
lection); |
82 void cancelCheck(); | 83 void cancelCheck(); |
83 void chunkAndMarkAllMisspellingsAndBadGrammar(Node*); | 84 void chunkAndMarkAllMisspellingsAndBadGrammar(Node*); |
84 void requestTextChecking(const Element&); | 85 void requestTextChecking(const Element&); |
(...skipping 12 matching lines...) Expand all Loading... |
97 | 98 |
98 bool unifiedTextCheckerEnabled() const; | 99 bool unifiedTextCheckerEnabled() const; |
99 | 100 |
100 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck, bool asynchronous
); | 101 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck, bool asynchronous
); |
101 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck
ingOptions, Range* checkingRange, Range* paragraphRange, bool asynchronous, int
requestNumber, int* checkingLength = 0); | 102 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck
ingOptions, Range* checkingRange, Range* paragraphRange, bool asynchronous, int
requestNumber, int* checkingLength = 0); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace blink | 105 } // namespace blink |
105 | 106 |
106 #endif // SpellChecker_h | 107 #endif // SpellChecker_h |
OLD | NEW |