| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 78 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
| 79 enum class ElementsType { kAll, kOnlyNonEditable }; | 79 enum class ElementsType { kAll, kOnlyNonEditable }; |
| 80 void removeSpellingAndGrammarMarkers(const HTMLElement&, | 80 void removeSpellingAndGrammarMarkers(const HTMLElement&, |
| 81 ElementsType = ElementsType::kAll); | 81 ElementsType = ElementsType::kAll); |
| 82 void spellCheckAfterBlur(); | 82 void spellCheckAfterBlur(); |
| 83 | 83 |
| 84 void didEndEditingOnTextField(Element*); | 84 void didEndEditingOnTextField(Element*); |
| 85 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, | 85 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, |
| 86 int from, | 86 int from, |
| 87 int length) const; | 87 int length) const; |
| 88 bool selectionStartHasSpellingMarkerFor(int from, int length) const; | |
| 89 void updateMarkersForWordsAffectedByEditing( | 88 void updateMarkersForWordsAffectedByEditing( |
| 90 bool onlyHandleWordsContainingSelection); | 89 bool onlyHandleWordsContainingSelection); |
| 91 void cancelCheck(); | 90 void cancelCheck(); |
| 92 | 91 |
| 93 // Exposed for testing and idle time spell checker | 92 // Exposed for testing and idle time spell checker |
| 94 SpellCheckRequester& spellCheckRequester() const { | 93 SpellCheckRequester& spellCheckRequester() const { |
| 95 return *m_spellCheckRequester; | 94 return *m_spellCheckRequester; |
| 96 } | 95 } |
| 97 IdleSpellCheckCallback& idleSpellCheckCallback() const { | 96 IdleSpellCheckCallback& idleSpellCheckCallback() const { |
| 98 return *m_idleSpellCheckCallback; | 97 return *m_idleSpellCheckCallback; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 135 |
| 137 Member<LocalFrame> m_frame; | 136 Member<LocalFrame> m_frame; |
| 138 | 137 |
| 139 const Member<SpellCheckRequester> m_spellCheckRequester; | 138 const Member<SpellCheckRequester> m_spellCheckRequester; |
| 140 const Member<IdleSpellCheckCallback> m_idleSpellCheckCallback; | 139 const Member<IdleSpellCheckCallback> m_idleSpellCheckCallback; |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 } // namespace blink | 142 } // namespace blink |
| 144 | 143 |
| 145 #endif // SpellChecker_h | 144 #endif // SpellChecker_h |
| OLD | NEW |